42shpimanmls / 42sh

Shell project at 42
3 stars 0 forks source link

invalid read recursive substitution #304

Closed n0izn0iz closed 7 years ago

n0izn0iz commented 7 years ago
echo ` echo \`echo \\\`pwd \\\` \` `
==99582== Invalid read of size 1
==99582==    at 0x1000067C0: has_quotes (quote_removal.c:83)
==99582==    by 0x100006757: quote_removal (quote_removal.c:96)
==99582==    by 0x100005EDB: expand_cmd_word (expansion.c:27)
==99582==    by 0x100005D9B: expand_cmd_words (expansion.c:46)
==99582==    by 0x100005071: execute_simple_command (execute_pipeline.c:69)
==99582==    by 0x100005171: execute_pipeline (execute_pipeline.c:101)
==99582==    by 0x100004DE5: execute_and_or_list (execute_command_list.c:36)
==99582==    by 0x100004EE1: execute_command_list (execute_command_list.c:77)
==99582==    by 0x10000ADE7: main_loop (main.c:37)
==99582==    by 0x10000AC8E: main (main.c:56)
==99582==  Address 0x0 is not stack'd, malloc'd or (recently) free'd