INFO: Seed: 1606364390 INFO: Loaded 1 modules (22090 inline 8-bit counters): 22090 [0xbc4cc8, 0xbca312), INFO: Loaded 1 PC tables (22090 PCs): 22090 [0x8a0020,0x8f64c0), /out/hb-shape-fuzzer: Running 1 inputs 1 time(s) each. Running: /tmp/poc ================================================================= ==13==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x617000000688 at pc 0x0000005cc77d bp 0x7fffe0301930 sp 0x7fffe0301928 READ of size 2 at 0x617000000688 thread T0 SCARINESS: 14 (2-byte-read-heap-buffer-overflow) #0 0x5cc77c in BEInt::operator unsigned short() const /src/harfbuzz/src/./hb-machinery.hh:728:59 #1 0x5cc720 in OT::IntType::operator unsigned int() const /src/harfbuzz/src/./hb-open-type.hh:67:51 #2 0x70b6d5 in CFF::Charset1_2 >::get_glyph(unsigned int) const /src/harfbuzz/src/./hb-ot-cff1-table.hh:401:12 #3 0x70a421 in CFF1CSOpSet_Extents::process_seac(CFF::CFF1CSInterpEnv&, ExtentsParam&) /src/harfbuzz/src/hb-ot-cff1-table.cc:275:40 #4 0x709f2c in CFF::CFF1CSOpSet::process_op(unsigned int, CFF::CFF1CSInterpEnv&, ExtentsParam&) /src/harfbuzz/src/./hb-cff1-interp-cs.hh:104:4 #5 0x709b3b in CFF::CSInterpreter::interpret(ExtentsParam&) /src/harfbuzz/src/./hb-cff-interp-cs-common.hh:876:7 #6 0x708c00 in _get_bounds(OT::cff1::accelerator_t const*, unsigned int, Bounds&, bool) /src/harfbuzz/src/hb-ot-cff1-table.cc:303:7 #7 0x708688 in OT::cff1::accelerator_t::get_extents(unsigned int, hb_glyph_extents_t*) const /src/harfbuzz/src/hb-ot-cff1-table.cc:312:8 #8 0x6023ab in hb_ot_get_glyph_extents(hb_font_t*, void*, unsigned int, hb_glyph_extents_t*, void*) /src/harfbuzz/src/hb-ot-font.cc:187:26 #9 0x74fa88 in position_around_base(hb_ot_shape_plan_t const*, hb_font_t*, hb_buffer_t*, unsigned int, unsigned int) /src/harfbuzz/src/hb-ot-shape-fallback.cc:313:14 #10 0x74e29f in position_cluster(hb_ot_shape_plan_t const*, hb_font_t*, hb_buffer_t*, unsigned int, unsigned int) /src/harfbuzz/src/hb-ot-shape-fallback.cc:413:7 #11 0x6bc8c8 in hb_ot_position(hb_ot_shape_context_t const*) /src/harfbuzz/src/hb-ot-shape.cc:904:3 #12 0x6ba2b6 in hb_ot_shape_internal(hb_ot_shape_context_t*) /src/harfbuzz/src/hb-ot-shape.cc:975:3 #13 0x6b9dd4 in _hb_ot_shape /src/harfbuzz/src/hb-ot-shape.cc:998:3 #14 0x6ce628 in hb_shape_plan_execute /src/harfbuzz/src/./hb-shaper-list.hh:42:1 #15 0x6cf854 in hb_shape_full /src/harfbuzz/src/hb-shape.cc:143:19 #16 0x530a4d in LLVMFuzzerTestOneInput /src/harfbuzz/./test/fuzzing/hb-shape-fuzzer.cc:37:3 #17 0x55c235 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/libfuzzer/FuzzerLoop.cpp:571:15 #18 0x531a5d in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/libfuzzer/FuzzerDriver.cpp:280:6 #19 0x53d2a6 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/libfuzzer/FuzzerDriver.cpp:713:9 #20 0x5310dc in main /src/libfuzzer/FuzzerMain.cpp:20:10 #21 0x7f195ce1883f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f) #22 0x41cfa8 in _start (/out/hb-shape-fuzzer+0x41cfa8) DEDUP_TOKEN: BEInt::operator unsigned short() const--OT::IntType::operator unsigned int() const--CFF::Charset1_2 >::get_glyph(unsigned int) const 0x617000000688 is located 0 bytes to the right of 648-byte region [0x617000000400,0x617000000688) allocated by thread T0 here: #0 0x52c508 in operator new[](unsigned long) /src/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:109 #1 0x55bfe7 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/libfuzzer/FuzzerLoop.cpp:558:23 #2 0x531a5d in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/libfuzzer/FuzzerDriver.cpp:280:6 #3 0x53d2a6 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/libfuzzer/FuzzerDriver.cpp:713:9 #4 0x5310dc in main /src/libfuzzer/FuzzerMain.cpp:20:10 #5 0x7f195ce1883f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2083f) DEDUP_TOKEN: operator new[](unsigned long)--fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long)--fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) SUMMARY: AddressSanitizer: heap-buffer-overflow /src/harfbuzz/src/./hb-machinery.hh:728:59 in BEInt::operator unsigned short() const Shadow bytes around the buggy address: 0x0c2e7fff8080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c2e7fff8090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c2e7fff80a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c2e7fff80b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0c2e7fff80c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x0c2e7fff80d0: 00[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c2e7fff80e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c2e7fff80f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c2e7fff8100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c2e7fff8110: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c2e7fff8120: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc ==13==ABORTING