Browse Source

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
svn/tags/lighttpd-1.4.20
Stefan Bühler 13 years ago
parent
commit
438626667c
  1. 1
      NEWS
  2. 3
      src/mod_ssi_exprparser.y

1
NEWS

@ -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

3
src/mod_ssi_exprparser.y

@ -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; }

Loading…
Cancel
Save