Summary: | "Assertion failed! (unsigned)(c + 1) <= 256" with extended chars in GS_OPTIONS | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | SaGS <sags5495> |
Component: | General | Assignee: | Default assignee <ghostpdl-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alex |
Priority: | P4 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Customer: | Word Size: | --- | |
Attachments: | Suggested patch. |
Description
SaGS
2011-07-16 19:01:33 UTC
Created attachment 7678 [details] Suggested patch. Bug 692347: "Assertion failed! (unsigned)(c + 1) <= 256" with extended chars in GS_OPTIONS. In some circumstances, characters from the arguments are passed to "isspace()", which expects an int argument in the rage 0..255 or the value EOF. In the char type is signed, character values of 128 and larger are considered negative, and promoted to negative integers outside the range accepted by "isspace()". This patch has been committed by Ray on 2011-07-17 as a rev. 44a2fd0bb1e2dd12e9ba475da0bdbb93081325d5 |