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