summaryrefslogtreecommitdiff
path: root/src%2525253fid%2525253d8abb1a93add0a2c9c08df6a28f7da2ba27cf1019%25253fid%2525...
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2018-05-26 11:44:30 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2018-05-26 11:44:30 +0200
commit7e5f8ed7bc862ef56b4ae5c5c26b833b801e1ad5 (patch)
tree346049051cee3f4a481eb375531caa331a948416 /src%2525253fid%2525253d8abb1a93add0a2c9c08df6a28f7da2ba27cf1019%25253fid%25253d7e5f8ed7bc862ef56b4ae5c5c26b833b801e1ad5%253fid%253d7e5f8ed7bc862ef56b4ae5c5c26b833b801e1ad5%3fid%3d7e5f8ed7bc862ef56b4ae5c5c26b833b801e1ad5&id2%3dbb7381765c435ac37e133f7fcc14a07823539050?id=7e5f8ed7bc862ef56b4ae5c5c26b833b801e1ad5
parentbb7381765c435ac37e133f7fcc14a07823539050 (diff)
Avoid buffer overrun in config_parse_str()
The previous implementation only read a prefix from the configuration file if the configuration value was too long and forgot to terminate the string with a NUL character. Return 0 if the string is too long instead. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src%2525253fid%2525253d8abb1a93add0a2c9c08df6a28f7da2ba27cf1019%25253fid%25253d7e5f8ed7bc862ef56b4ae5c5c26b833b801e1ad5%253fid%253d7e5f8ed7bc862ef56b4ae5c5c26b833b801e1ad5%3fid%3d7e5f8ed7bc862ef56b4ae5c5c26b833b801e1ad5&id2%3dbb7381765c435ac37e133f7fcc14a07823539050?id=7e5f8ed7bc862ef56b4ae5c5c26b833b801e1ad5')
0 files changed, 0 insertions, 0 deletions