diff options
author | Pawin Vongmasa <pawin@google.com> | 2018-05-08 06:40:24 -0700 |
---|---|---|
committer | mspector <mspector@google.com> | 2018-07-19 01:21:50 -0700 |
commit | ae0bc4ba6369ae0a5073a01aed7b9e48cba45594 (patch) | |
tree | 13dea522a40d4ee947def21b33c258f6aba01b55 | |
parent | 95e6c4663c640c67a69e1d2b44696753282136f8 (diff) | |
download | neven-security-oc-release.tar.gz |
Make bound check proper in bbf_Scanner_addOutPosandroid-security-8.0.0_r54android-security-8.0.0_r53android-security-8.0.0_r52android-8.0.0_r51android-8.0.0_r50android-8.0.0_r49android-8.0.0_r48android-8.0.0_r47android-8.0.0_r46android-8.0.0_r45android-8.0.0_r44android-8.0.0_r43android-8.0.0_r42android-8.0.0_r41android-8.0.0_r40android-8.0.0_r39android-8.0.0_r38android-8.0.0_r37security-oc-releaseoreo-security-release
Bug: 78290481
Change-Id: Ifab456f40b5e8f14f2728ad67d1b3e2eeae0b947
(cherry picked from commit fb710d3c6af6fd139e30d39eb852ba6bcfcec911)
-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; |