]> gitweb.ps.run Git - ps-cgit/commitdiff
Use strbuf for reading configuration files
authorLukas Fleischer <cgit@cryptocrack.de>
Tue, 4 Jun 2013 14:47:53 +0000 (14:47 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 12 Aug 2013 19:14:10 +0000 (13:14 -0600)
Use struct strbuf from Git instead of fixed-size buffers to remove the
limit on the length of configuration file lines and refactor
read_config_line() to improve readability.

Note that this also fixes a buffer overflow that existed with the
original fixed-size buffer implementation.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>

No differences found