[PATCH v2] Use strbuf for reading configuration files

Lukas Fleischer cgit at cryptocrack.de
Thu Jun 13 23:25:53 CEST 2013


On Wed, Jun 05, 2013 at 01:17:00PM +0200, Lukas Fleischer wrote:
> 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 at cryptocrack.de>
> ---
>  configfile.c | 64 +++++++++++++++++++++++++++++++-----------------------------
>  configfile.h |  2 ++
>  2 files changed, 35 insertions(+), 31 deletions(-)
> 

Status...?

> [...]


More information about the CGit mailing list