Fix mem leak in ssi expression parser (#1753), thx Take5k

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2289 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Stefan Bühler 2008-08-19 16:42:01 +00:00
parent 5194c28220
commit 438626667c
2 changed files with 3 additions and 1 deletions

1
NEWS
View File

@ -55,6 +55,7 @@ NEWS
* fixed bug with case-insensitive filenames in mod_userdir (#1589), spotted by "anders1"
* fixed format string bugs in mod_accesslog for SYSLOG
* replaced fprintf with log_error_write in fastcgi debug
* fixed mem leak in ssi expression parser (#1753), thx Take5k
- 1.4.19 - 2008-03-10

View File

@ -105,12 +105,13 @@ expr(A) ::= value(B). {
}
value(A) ::= VALUE(B). {
A = buffer_init_string(B->ptr);
A = B;
}
value(A) ::= value(B) VALUE(C). {
A = B;
buffer_append_string_buffer(A, C);
buffer_free(C);
}
cond(A) ::= EQ. { A = SSI_COND_EQ; }