Browse Source

[core] check configparserAlloc() result with force_assert

From: Gaurav <g.gupta@samsung.com>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3044 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.38
Gaurav 6 years ago
committed by Stefan Bühler
parent
commit
37bdb250a4
  1. 1
      NEWS
  2. 1
      src/configfile.c

1
NEWS

@ -7,6 +7,7 @@ NEWS
* [stat-cache] fix handling of collisions, might have returned wrong data (fixes #2669)
* [core] allocate at least 4k buffer for incoming data
* [core] fix search for header end if split across chunks (fixes #2670)
* [core] check configparserAlloc() result with force_assert
- 1.4.37 - 2015-08-30
* [mod_proxy] remove debug log line from error log (fixes #2659)

1
src/configfile.c

@ -931,6 +931,7 @@ static int config_parse(server *srv, config_t *context, tokenizer_t *t) {
int ret;
pParser = configparserAlloc( malloc );
force_assert(pParser);
lasttoken = buffer_init();
token = buffer_init();
while((1 == (ret = config_tokenizer(srv, t, &token_id, token))) && context->ok) {

Loading…
Cancel
Save