diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-11-10 15:05:56 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-11-10 15:09:57 +0000 |
commit | df8c6c3ad758fbcd88fbbe7fb53221a32ae3abe2 (patch) | |
tree | 35bbd4c6b8cd628ee8da82a2207f4aeb520e204e /framebuffer | |
parent | 72f4c4f8b8bae950bbd0d38379e2be458bb91273 (diff) | |
download | netsurf-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 'framebuffer')
0 files changed, 0 insertions, 0 deletions