]> granicus.if.org Git - nethack/commit
avoid crash for long lines in nethackrc
authorDavid Cohrs <davecohrs@gmail.com>
Fri, 29 Jan 2016 02:38:53 +0000 (18:38 -0800)
committerDavid Cohrs <davecohrs@gmail.com>
Fri, 29 Jan 2016 02:40:59 +0000 (18:40 -0800)
commit288ac4b07c82bcd40d8f54fa0063a854e3c65a77
tree9fcc81c2caff515693cba19b986a1d96ece05f28
parentb632247a74175ebadf9572c7e3e10c4f022b6f2a
avoid crash for long lines in nethackrc

read_config_file() has used a buffer of size (4 * BUFSZ) since 3.4.x
so parse_config_line() needs a buffer of the same size to avoid
buffer overrun. Allows my old .nethackrc to work again.
doc/fixes36.1
src/files.c