scaled-font: Fix glyph and cluster count checks (CID #983386)
commit61122127943dcaff41501e1b06df2a852c576e9b
authorBryce Harrington <bryce@bryceharrington.org>
Tue, 12 Jun 2018 23:04:03 +0000 (12 16:04 -0700)
committerBryce Harrington <bryce@bryceharrington.org>
Sat, 16 Jun 2018 05:15:19 +0000 (15 22:15 -0700)
tree046a0d20078db179d33ae862807234b2c8400a0e
parent9c7d5a49c6c7a983c6798daf7362775ef1711239
scaled-font: Fix glyph and cluster count checks (CID #983386)

num_glyphs and num_clusters are explicitly checked to be non-NULL at the
beginning of this routine, and by this point in the code both have been
deref'd multiple times, so checking them for NULL here again is
superfluous.

It looks like the intent here is to verify the glyphs and clusters
arrays are non-NULL unless their counts are zero, so change the tests
accordingly.

Coverity ID: #983386

Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
src/cairo-scaled-font.c