Commit 3018d2d
committed
Fix array overrun in fdb_functional test
As identified during testing for AArch64 support, fdb_functional_test
attempts to access array element 13 in a 10 element array, which is
flaggedy by UBSan:
10: i=13
10: ../forestdb/tests/functional/fdb_functional_test.cc:257:21: runtime error: load of address 0xfffff1796fa8 with insufficient space for an object of type 'struct fdb_doc *'
10: 0xfffff1796fa8: note: pointer points here
10: ff ff 00 00 00 92 51 00 00 00 00 00 d0 6f 79 f1 ff ff 00 00 6c 24 52 00 00 00 00 00 b0 76 79 f1
10: ^
Change-Id: I37545e8a13fc745029427f68ed46347db51fa587
Reviewed-on: http://review.couchbase.org/c/forestdb/+/159303
Reviewed-by: Paolo Cocchi <[email protected]>
Tested-by: Build Bot <[email protected]>1 parent f872bd4 commit 3018d2d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
0 commit comments