summaryrefslogtreecommitdiff
path: root/sys/src/cmd/deroff.c
AgeCommit message (Collapse)Author
2020-08-01deroff: fix out-of-bounds access if runes above 0X80 are inside EQ clauses ↵Ori Bernstein
(thanks mmnmnnmnmm, via plan9port) Characters greater than 0X80 will cause a read beyond the bounds of the array chars[]. For particular unicode characters this can cause deroff to segfault. A minimal example: $ deroff .EQ u∈ Segmentation fault Throughout deroff, charclass() is used instead of directly indexing chars[] so I presume this was just missed.
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen