diff options
author | Ray Johnston <ray.johnston@artifex.com> | 2002-09-02 22:09:15 +0000 |
---|---|---|
committer | Ray Johnston <ray.johnston@artifex.com> | 2002-09-02 22:09:15 +0000 |
commit | 6c64c7615b4351f0c011e34f6fe08ca58a8d1ea4 (patch) | |
tree | a54b72ad684e56089d88becb7877cd6fd4fbe6e9 /gs/src/seexec.c | |
parent | 2491480a235fa1181d127622341e2d754adcbb50 (diff) |
Fix: Don't skip '\f' or '\0' after eexec but still skip
\r', '\n', '\t', ' ' because Adobe interpreters do this.
Bug #594741 from a free user. Fix by Alex Cherepanov.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@2964 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/seexec.c')
-rw-r--r-- | gs/src/seexec.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gs/src/seexec.c b/gs/src/seexec.c index 1bc88040e..84b9b2f90 100644 --- a/gs/src/seexec.c +++ b/gs/src/seexec.c @@ -111,15 +111,17 @@ s_exD_process(stream_state * st, stream_cursor_read * pr, if (ss->pfb_state == 0) { /* - * Skip witespace at the beginning of the input stream, - * because Adobe interpreters do this. + * Skip '\t', '\r', '\n', ' ' at the beginning of the input stream, + * because Adobe interpreters do this. Don't skip '\0' or '\f'. */ - for (; rcount; rcount--, p++) - if (decoder[p[1]] != ctype_space) - break; - pr->ptr = p; - count = min(wcount, rcount); - } + for (; rcount; rcount--, p++) { + byte c = p[1]; + if(c != '\t' && c != char_CR && c != char_EOL && c != ' ') + break; + } + pr->ptr = p; + count = min(wcount, rcount); + } /* * Determine whether this is ASCII or hex encoding. |