RootCauseunvalidated
src/pch.c:do_ed_script() builds a shell command with sprintf("%s %s%s", editor_program, "- ", outname) at line 2399 then feeds it to popen() at line 2403 — GNU patch (<= 2.7.6) src/pch.c:do_ed_script(). Outcome: popen() spawns /bin/sh -c.
42ecb8aa-d677-470e-9ff7-0076e6e6568b
src/pch.c:do_ed_script() builds a shell command with sprintf("%s %s%s", editor_program, "- ", outname) at line 2399 then feeds it to popen() at line 2403 — GNU patch (<= 2.7.6) src/pch.c:do_ed_script(). Outcome: popen() spawns /bin/sh -c.