[Desktop-packages] [Bug 1065845] [NEW] crash while proccessing pdf with long path

2012-10-12 Thread Basil Semuonov
Public bug reported: gs chares while processing pdf by it's full path. versions 8.71, 9.05 and 9.06 (pre-release freeze) are affected by this bug. Expected: split first slide from pdf. Example: ghostscript -sDEVICE=pdfwrite -dNOPAUSE -dQUIET -dBATCH -dFirstPage=1 -dLastPage=1 -sOutputFile=/va

[Desktop-packages] [Bug 1065845] Re: crash while proccessing pdf with long path

2012-10-15 Thread Basil Semuonov
The problem is actually in processing "-sOutputFile" command line parameter. File ./base/gsparam2.c contains a define: #define MAX_PARAM_KEY 255 so if length of path -sOutputFile > MAX_PARAM_KEY security check performed: gsparam2.c:73 --- char string_key[MAX_PARAM_KEY + 1]; if (sizeof(string_ke