diff options
| -rw-r--r-- | sys/src/cmd/postscript/text2post/text2post.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/src/cmd/postscript/text2post/text2post.c b/sys/src/cmd/postscript/text2post/text2post.c index 963911305..b8f87994b 100644 --- a/sys/src/cmd/postscript/text2post/text2post.c +++ b/sys/src/cmd/postscript/text2post/text2post.c @@ -325,6 +325,11 @@ txt2post(void) { thischar = r & 0xff; thisfont = (r>>8) & 0xff; + if (thisfont >= FONTABSIZE) { + Bprint(Bstderr, "font out of range\n"); + exits("font"); + } + if (line_no == 0 && char_no == 0) startpage(); |
