summaryrefslogtreecommitdiff
path: root/desktop/searchweb.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-11-10 15:05:56 +0000
committerVincent Sanders <vince@kyllikki.org>2014-11-10 15:09:57 +0000
commitdf8c6c3ad758fbcd88fbbe7fb53221a32ae3abe2 (patch)
tree35bbd4c6b8cd628ee8da82a2207f4aeb520e204e /desktop/searchweb.h
parent72f4c4f8b8bae950bbd0d38379e2be458bb91273 (diff)
downloadnetsurf-df8c6c3ad758fbcd88fbbe7fb53221a32ae3abe2.tar.gz
netsurf-df8c6c3ad758fbcd88fbbe7fb53221a32ae3abe2.tar.bz2
Avoid calling calloc with 0 length data.
CERT MEM04-C suggests that zero length allocations behaviour might be surprising so it should be avoided. This adds a check to ensure a zero length allocation will be avoided. Additionally it returns errors to the caller rather than warning directly (in some error paths)
Diffstat (limited to 'desktop/searchweb.h')
0 files changed, 0 insertions, 0 deletions