Skip to content

Avoid a null pointer dereference and crash

Linas Vepstas requested to merge linas/gthumb:gstreamer-crash into master

Work around crash in webalbum code when copying video. mimetype is "video/quicktime".

gth_image_new_from_stream() at gthumb/gth-image-loader.c:378 will call gstreamer_thumbnail_generator() with a NULL file_data, leading to a null pointer deref. This happens when creating a web-album, with the "copy files to destination" checked.

This change avoids the crash; however, the user will see an error message about the mimetype, and the album will not be built.

Merge request reports