summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2020-01-04 18:22:58 +0100
committerMarcus Meissner <marcus@jet.franken.de>2020-01-04 18:23:12 +0100
commitec3fbb92addf07c8af74909331e89e60f83002bc (patch)
tree6b64db6c21083adf32b404171c15ccc7328279cc
parent41531c022af8358e88f435ab21aefe792a743d64 (diff)
downloadlibgphoto2-ec3fbb92addf07c8af74909331e89e60f83002bc.tar.gz
handle invalid file types by erroring out (AFL)
-rw-r--r--camlibs/spca50x/spca50x-sdram.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/camlibs/spca50x/spca50x-sdram.c b/camlibs/spca50x/spca50x-sdram.c
index 8ac57e26f..f11cc8a32 100644
--- a/camlibs/spca50x/spca50x-sdram.c
+++ b/camlibs/spca50x/spca50x-sdram.c
@@ -931,6 +931,9 @@ spca50x_get_FATs (CameraPrivateLibrary * lib, int dramtype)
++lib->num_movies);
lib->files[file_index].mime_type =
SPCA50X_FILE_TYPE_AVI;
+ } else {
+ gp_log(GP_LOG_ERROR, "spca50x", "type %d unhandled - error", type);
+ return GP_ERROR;
}
lib->files[file_index].fat = p;
lib->files[file_index].fat_start = index;