From ec3fbb92addf07c8af74909331e89e60f83002bc Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 4 Jan 2020 18:22:58 +0100 Subject: [PATCH] handle invalid file types by erroring out (AFL) --- camlibs/spca50x/spca50x-sdram.c | 3 +++ 1 file changed, 3 insertions(+) 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;