summaryrefslogtreecommitdiffstats
path: root/LICENSE-CYG
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-02-15 07:49:01 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-02-15 15:21:15 -0800
commitb76c5760919b33fe15d9350a23ccaebcc905397c (patch)
tree18ac1343300957ea4bb6bf68bd0bdd21c835fa66 /LICENSE-CYG
parenta632605cdf74fe0ad72c3a234e0cbf748f25bcff (diff)
downloadtxr-b76c5760919b33fe15d9350a23ccaebcc905397c.tar.gz
txr-b76c5760919b33fe15d9350a23ccaebcc905397c.tar.bz2
txr-b76c5760919b33fe15d9350a23ccaebcc905397c.zip
listener: fix buffer overflow reading external file.
When an external file is edited, and is longer than the listener's buffer allows, the buffer overflows, trashing the other fields in the linenoise structure, and memory beyond. * parser.c (lino_gets): Decrement nchar in the loop. Also, eliminate useless return case.
Diffstat (limited to 'LICENSE-CYG')
0 files changed, 0 insertions, 0 deletions