Hi, I tested chew with klovo.io's KLEE extension and found some issues, e.g.: $ printf ':\x0c""\x00\x03\x03\x03' > input1 $ echo "" | ./chew '-f' input1 ==552338==ERROR: AddressSanitizer: heap-use-after-free READ of size 8 at 0x7c12a95e0d60 thread T0 #0 0x55d1f1f3bc11 in free_words doc/chew.c:1219 #1 0x55d1f1f3bc11 in main doc/chew.c:1607 ... $ printf '\x0c:\\\x0c""-\x01' > input2 $ printf '/**/\x00///' | ./chew '-f' input2 ================================================================= ==552628==ERROR: AddressSanitizer: heap-use-after-free READ of size 8 at 0x7b4a381e0d60 thread T0 #0 0x55bc94344fff in lookup_word doc/chew.c:1201 #1 0x55bc94346a21 in perform doc/chew.c:1258 #2 0x55bc94346a21 in main doc/chew.c:1591 ... Kind regards, Frank
Your input1 file is an broken program for chew. It is unsurprising that it breaks chew.