diff options
author | Android Build Merger (Role) <noreply-android-build-merger@google.com> | 2018-05-08 13:42:58 +0000 |
---|---|---|
committer | Android Build Merger (Role) <noreply-android-build-merger@google.com> | 2018-05-08 13:42:58 +0000 |
commit | f2dd438ff3e3c94334701bd1c791e936347ff14a (patch) | |
tree | e151255234d0b834009655d3320bafe6e5ac9d5a | |
parent | b212725fe71ed9ce8d0adda92fc43030337bd48a (diff) | |
parent | fb710d3c6af6fd139e30d39eb852ba6bcfcec911 (diff) | |
download | neven-f2dd438ff3e3c94334701bd1c791e936347ff14a.tar.gz |
[automerger] Make bound check proper in bbf_Scanner_addOutPos am: fb710d3c6a
Change-Id: I5baaafb4965387a7bf011d625355fcc7f33302a5
-rw-r--r-- | Embedded/common/src/b_BitFeatureEm/Scanner.c | 2 |
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; |