From: Hoà Viêt Dinh Date: Wed, 8 Dec 2004 13:12:13 +0000 (+0000) Subject: refixed buffer overflow X-Git-Tag: rel_1_0_0~42 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=014eb21d32a1c3271ba9cd5bce0d62a136ff6510 refixed buffer overflow --- diff --git a/ChangeLog.claws b/ChangeLog.claws index 8eee7ad1f..65f23951b 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,8 @@ +2004-12-08 [hoa] 0.9.13cvs8 + + * src/quote_fmt_parse.y + really fix buffer overflow + 2004-12-08 [colin] 0.9.13cvs7 * src/matcher_parser_parse.y diff --git a/configure.ac b/configure.ac index 212109a3a..3a34fa33c 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=9 MICRO_VERSION=13 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=7 +EXTRA_VERSION=8 EXTRA_RELEASE= if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then diff --git a/src/quote_fmt_parse.y b/src/quote_fmt_parse.y index bdbcd7aac..a28647fb5 100644 --- a/src/quote_fmt_parse.y +++ b/src/quote_fmt_parse.y @@ -205,12 +205,12 @@ string: int len; strncpy($$, $1, sizeof($$)); + $$[sizeof($$) - 1] = '\0'; len = strlen($$); if (len + 1 < sizeof($$)) { $$[len + 1] = '\0'; $$[len] = $2; } - $$[sizeof($$) - 1] = '\0'; }; special: