]>
git.sesse.net Git - mlt/commit
mlt_producer_seek(): check that eof is not NULL
Fixes Coverity CID 709348: Dereference after null check (FORWARD_NULL)
Comparing "eof" to null implies that "eof" might be null.
310 else if ( use_points && ( eof == NULL || !strcmp( eof, "pause" ) ) && position >= mlt_producer_get_playtime( self ) )
311 {
312 mlt_producer_set_speed( self, 0 );
313 position = mlt_producer_get_playtime( self ) - 1;
314 }
At conditional (3): "use_points" taking the true branch.
Passing null variable "eof" to function "strcmp", which dereferences it. (The dereference is assumed on the basis of the 'nonnull' parameter attribute.)
315 else if ( use_points && !strcmp( eof, "loop" ) && position >= mlt_producer_get_playtime( self ) )