[CDRIVER-2011] libbson fuzztest failure Created: 01/Feb/17  Updated: 03/May/17  Resolved: 03/Mar/17

Status: Closed
Project: C Driver
Component/s: libbson
Affects Version/s: None
Fix Version/s: 1.7.0

Type: Bug Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File asan-fuzz.txt    
Issue Links:
Duplicate
duplicates CDRIVER-2046 Invalid read in libbson-release Closed

 Description   

Seen once:

ERROR: AddressSanitizer: heap-buffer-overflow
READ of size 1 at 0x615001d65000 thread T0
    #0 0x4a609c in __asan_memcpy 
    #1 0x7f66a1602f76 in _bson_iter_next_internal src/bson/bson-iter.c:576:11
    #2 0x7f66a1600552 in bson_iter_next src/bson/bson-iter.c:769:11
    #3 0x50e365 in test_bson_iter_fuzz tests/test-iter.c:251:14
0x615001d65000 is located 0 bytes to the right of 512-byte region
allocated by thread T0 here:
    #0 0x4bc368 in __interceptor_malloc (.libs/lt-test-libbson+0x4bc368)
    #1 0x7f66a16230be in bson_malloc src/bson/bson-memory.c:68:11
    #2 0x7f66a15eb3e0 in bson_sized_new src/bson/bson.c:1945:23
    #3 0x7f66a15eba3f in bson_new_from_data src/bson/bson.c:1978:11
    #4 0x50e23f in test_bson_iter_fuzz tests/test-iter.c:235:17
SUMMARY: AddressSanitizer: heap-buffer-overflow  in __asan_memcpy



 Comments   
Comment by Githook User [ 03/Mar/17 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-2011 include rand seed in test output
Branch: master
https://github.com/mongodb/libbson/commit/be6c16ccee07696be4882552716ee64a895bcb50

Comment by A. Jesse Jiryu Davis [ 13/Feb/17 ]

Possible dupe.

Generated at Wed Feb 07 21:13:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.