[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 2015-09-26 10:11:22 +00:00 committed by Stefan Bühler
parent a93be99441
commit 37bdb250a4
2 changed files with 2 additions and 0 deletions

1
NEWS
View File

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

View File

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