cairo/util/cairo-trace
Bryce Harrington 9d2e3646fa script-surface: Check for invalid ids (CID #1159557, 1159558)
If the bitmap's min is non-zero, _bitmap_next_id() could break out of
its loop early, before initializing the prev variable.  prev would then
be dereferenced without a null ptr check.  This condition should never
occur in practice, so add an assert() to assure it doesn't.

Same issue is present in trace.c.

Coverity IDs: #1159557, #1159558
Reviewed-By: Uli Schlachter <psychon@znc.in>
Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
2018-06-13 15:21:50 -07:00
..
.gitignore [.gitignore] Add 2008-10-31 13:43:37 -04:00
cairo-trace.in doc: fix a few typos found by codespell 2012-03-10 10:20:28 +01:00
COPYING Add a COPYING file to each aux. source directory 2008-10-31 16:14:14 +00:00
COPYING-GPL-3 Add a COPYING file to each aux. source directory 2008-10-31 16:14:14 +00:00
lookup-symbol.c Remove useless checks for NULL before freeing 2011-07-31 16:46:36 +02:00
lookup-symbol.h [util] Add cairo-trace. 2008-10-31 15:37:58 +00:00
Makefile.am Bug 29319 - Modules are built as versioned shared objects 2016-09-02 15:54:01 -07:00
trace.c script-surface: Check for invalid ids (CID #1159557, 1159558) 2018-06-13 15:21:50 -07:00