gs im

http://seclists.org/oss-sec/2018/q3/142

im exec gs command

gs exec

the pipe

#0 _IO_new_popen (command=0x1aaa5ae "id", mode=0xbfffec2c "w") at iopopen.c:273 #1 0x00495777 in pipe_fopen () #2 0x007afbdb in gx_device_open_output_file () #3 0x005fe05b in gdev_prn_open_printer_seekable.part () #4 0x00601008 in gdev_prn_output_page_aux () #5 0x006fb884 in ppm_output_page () #6 0x007ae197 in gs_output_page () #7 0x0090c6be in zoutputpage () #8 0x008de016 in interp () #9 0x008df9e8 in gs_interpret () #10 0x008d37e0 in gs_main_run_string_with_length () #11 0x008d3823 in gs_main_run_string () #12 0x008d529c in run_string () #13 0x00493593 in main () (gdb) ```

修复

ref

https://ruxcon.org.au/assets/2017/slides/hong-ps-and-gs-ruxcon2017.pdf