]> git.sesse.net Git - mlt/commitdiff
Fix possible null pointer dereference (coverity-1026786).
authorDan Dennedy <dan@dennedy.org>
Sun, 2 Jun 2013 21:14:41 +0000 (14:14 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 2 Jun 2013 21:54:42 +0000 (14:54 -0700)
src/modules/avsync/producer_blipflash.c

index 7e9c693df59618304103b49805d0956a0e4d42fa..755c14ff32c255747796ede6963f6f7c23f4a312 100644 (file)
@@ -189,7 +189,7 @@ static void fill_image( mlt_properties producer_properties, char* color, uint8_t
                }
        }
 
-       memcpy( buffer, image, new_size );
+       if( image ) memcpy( buffer, image, new_size );
 }
 
 static int producer_get_image( mlt_frame frame, uint8_t** buffer, mlt_image_format* format, int* width, int* height, int writable )