https://sourceware.org/bugzilla/show_bug.cgi?id=31314
Bug ID: 31314 Summary: chew crashing on use of uninitialized value Product: binutils Version: 2.42 Status: NEW Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: sch...@linux-m68k.org Target Milestone: --- $ MALLOC_CHECK_=3 doc/chew -f ../../binutils/bfd/doc/proto.str < ../../binutils/bfd/reloc.c Segmentation fault (core dumped) $ valgrind --track-origins=yes doc/chew -f ../../binutils/bfd/doc/proto.str < ../../binutils/bfd/reloc.c > xx ==10810== Memcheck, a memory error detector ==10810== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al. ==10810== Using Valgrind-3.20.0 and LibVEX; rerun with -h for copyright info ==10810== Command: doc/chew -f ../../binutils/bfd/doc/proto.str ==10810== ==10810== Conditional jump or move depends on uninitialised value(s) ==10810== at 0x40110F: exec (chew.c:361) ==10810== by 0x401144: call (chew.c:370) ==10810== by 0x401101: exec (chew.c:362) ==10810== by 0x403016: perform (chew.c:1280) ==10810== by 0x403BB2: main (chew.c:1609) ==10810== Uninitialised value was created by a heap allocation ==10810== at 0x483D85F: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==10810== by 0x400AF6: xrealloc (chew.c:176) ==10810== by 0x403170: add_to_definition (chew.c:1314) ==10810== by 0x40320B: add_intrinsic (chew.c:1329) ==10810== by 0x403A08: main (chew.c:1573) ==10810== ==10810== ==10810== HEAP SUMMARY: ==10810== in use at exit: 160,472 bytes in 2 blocks ==10810== total heap usage: 28,310 allocs, 28,308 frees, 123,451,337 bytes allocated ==10810== ==10810== LEAK SUMMARY: ==10810== definitely lost: 0 bytes in 0 blocks ==10810== indirectly lost: 0 bytes in 0 blocks ==10810== possibly lost: 0 bytes in 0 blocks ==10810== still reachable: 160,472 bytes in 2 blocks ==10810== suppressed: 0 bytes in 0 blocks ==10810== Rerun with --leak-check=full to see details of leaked memory ==10810== ==10810== For lists of detected and suppressed errors, rerun with: -s ==10810== ERROR SUMMARY: 596 errors from 1 contexts (suppressed: 0 from 0) -- You are receiving this mail because: You are on the CC list for the bug.