summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Merger (Role) <noreply-android-build-merger@google.com>2018-05-08 13:43:07 +0000
committerAndroid Build Merger (Role) <noreply-android-build-merger@google.com>2018-05-08 13:43:07 +0000
commitaf8bd4f7647256d7cf147f1ef690e14709a65ad1 (patch)
tree48d071979b71e60dac2a4be4467fb0d6927ba478
parent658d5fee09923c532ec68da3ff7d226a144e5e38 (diff)
parentc3914fb85a6809fc70da31143cdb5f519187ba36 (diff)
downloadneven-af8bd4f7647256d7cf147f1ef690e14709a65ad1.tar.gz
[automerger] Make bound check proper in bbf_Scanner_addOutPos am: fb710d3c6a am: f2dd438ff3 am: 7942c8493a am: d5993d6f07 am: d3ee23d15a am: 2787b2a84e am: e26eac123a am: adf91e2219 am: c3914fb85a
Change-Id: Ia6399bf54d62125e6e2b5933a68972315ccbc8d7
-rw-r--r--Embedded/common/src/b_BitFeatureEm/Scanner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Embedded/common/src/b_BitFeatureEm/Scanner.c b/Embedded/common/src/b_BitFeatureEm/Scanner.c
index 327e714..1a0ae2a 100644
--- a/Embedded/common/src/b_BitFeatureEm/Scanner.c
+++ b/Embedded/common/src/b_BitFeatureEm/Scanner.c
@@ -1064,7 +1064,7 @@ void bbf_Scanner_addOutPos( struct bbs_Context* cpA,
uint32 scaleA,
int32 actA )
{
- if( ( ptrA->outCountE * 4 ) < ptrA->outArrE.sizeE )
+ if( ( ptrA->outCountE * 4 + 3 ) < ptrA->outArrE.sizeE )
{
ptrA->outArrE.arrPtrE[ ptrA->outCountE * 4 + 0 ] = xA;
ptrA->outArrE.arrPtrE[ ptrA->outCountE * 4 + 1 ] = yA;