diff options
author | Pawin Vongmasa <pawin@google.com> | 2018-07-14 05:08:32 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-07-14 05:08:32 -0700 |
commit | 7a0257de7cd8124ce8a013148b632985e2089eb7 (patch) | |
tree | 4cf86fc10656ed1820118f37318d1a16569dfd01 | |
parent | 3b4130a0d3075d37efe5f56592ed929926fbe119 (diff) | |
parent | d8561ce960bd8af69351361db6f020c1c2a39111 (diff) | |
download | neven-7a0257de7cd8124ce8a013148b632985e2089eb7.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 am: af8bd4f764 am: f88ab0b1d9
am: d8561ce960
Change-Id: I0ddbcfe4b5574e285600c816e0f160f5f50809a2
-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; |