]> git.sesse.net Git - mlt/commit
producer_pango_init(): check for null pointer
authorMikko Rapeli <mikko.rapeli@iki.fi>
Mon, 30 Jul 2012 10:56:28 +0000 (12:56 +0200)
committerMikko Rapeli <mikko.rapeli@iki.fi>
Mon, 6 Aug 2012 16:37:24 +0000 (18:37 +0200)
commitbc7ed2bcb072cac9ecf1fd9d550b2416c6d8f707
tree2479b8965d4275df652ff834c4025914b75bfd33
parent614639387b74217b3c15ebb12ecd2ead26eb9786
producer_pango_init(): check for null pointer

Fixes Coverity CID 710868: Dereference before null check (REVERSE_INULL)
Dereferencing pointer "markup". (The dereference is assumed on the basis of the 'nonnull' parameter attribute.)
219                                                strcat( markup, line );
...
Dereferencing pointer "markup". (The dereference is assumed on the basis of the 'nonnull' parameter attribute.)
228                                if ( markup[ strlen( markup ) - 1 ] == '\n' )
229                                        markup[ strlen( markup ) - 1 ] = '\0';
...
Dereferencing "markup" before a null check.
232                                mlt_properties_set( properties, "markup", ( markup == NULL ? "" : markup ) );
src/modules/gtk2/producer_pango.c