diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-04-18 06:06:11 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-18 06:06:11 +0200 |
commit | 0fa0514b9172186d018c884da296ac6705c3e07c (patch) | |
tree | f9a5ceda42948715bd283727e1b93fa13548163b /config.c | |
parent | Merge branch 'maint-1.6.0' into maint-1.6.1 (diff) | |
parent | Fix buffer overflow in config parser (diff) | |
download | git-0fa0514b9172186d018c884da296ac6705c3e07c.tar.xz git-0fa0514b9172186d018c884da296ac6705c3e07c.zip |
Merge branch 'maint-1.6.0' into maint-1.6.1
* maint-1.6.0:
Fix buffer overflow in config parser
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -51,7 +51,7 @@ static char *parse_value(void) for (;;) { int c = get_next_char(); - if (len >= sizeof(value)) + if (len >= sizeof(value) - 1) return NULL; if (c == '\n') { if (quote) |