]> granicus.if.org Git - curl/commit
parsecfg: do not continue past a zero termination
authorDaniel Stenberg <daniel@haxx.se>
Thu, 16 Apr 2015 22:38:50 +0000 (00:38 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 17 Apr 2015 09:44:57 +0000 (11:44 +0200)
commit691a07dac6df0a827aa3f0b3e21000cdb362a7fb
treefbc5ff986ab03e85c0f10304819d5cfda480d49b
parent05e4137d313d928d8f5971a50452c683ef3b8205
parsecfg: do not continue past a zero termination

When a config file line ends without newline, the parsing function could
continue reading beyond that point in memory.

Reported-by: Hanno Böck
src/tool_parsecfg.c