diff options
author | Android Build Merger (Role) <noreply-android-build-merger@google.com> | 2018-05-08 13:42:59 +0000 |
---|---|---|
committer | Android Build Merger (Role) <noreply-android-build-merger@google.com> | 2018-05-08 13:42:59 +0000 |
commit | 7942c8493a804e29d6349c39c5348c735b51a3ea (patch) | |
tree | e151255234d0b834009655d3320bafe6e5ac9d5a | |
parent | b212725fe71ed9ce8d0adda92fc43030337bd48a (diff) | |
parent | f2dd438ff3e3c94334701bd1c791e936347ff14a (diff) | |
download | neven-7942c8493a804e29d6349c39c5348c735b51a3ea.tar.gz |
[automerger] Make bound check proper in bbf_Scanner_addOutPos am: fb710d3c6a am: f2dd438ff3
Change-Id: Ic0256f12a28616f0b3c1379d704bef24c0dfbcb5
-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; |