summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <meissner@suse.de>2020-02-10 16:51:58 +0100
committerMarcus Meissner <meissner@suse.de>2020-02-10 16:51:58 +0100
commitd6d4fd7683f6629d8233fa915fdf0ad2f78b1ee7 (patch)
tree33fbb71647d46e64c4f57d9cf52347abd637bfed
parentfe42811465f43b99dfc454f261e1ef06838d0659 (diff)
downloadlibgphoto2-d6d4fd7683f6629d8233fa915fdf0ad2f78b1ee7.tar.gz
log invaliddram and return error to avoid endless loop (AFL)
-rw-r--r--camlibs/spca50x/spca50x-sdram.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/camlibs/spca50x/spca50x-sdram.c b/camlibs/spca50x/spca50x-sdram.c
index 7a2900008..eee07d974 100644
--- a/camlibs/spca50x/spca50x-sdram.c
+++ b/camlibs/spca50x/spca50x-sdram.c
@@ -97,7 +97,8 @@ spca50x_sdram_get_fat_page (CameraPrivateLibrary * lib, int index,
SPCA50X_FAT_PAGE_SIZE, p));
break;
default:
- break;
+ gp_log(GP_LOG_ERROR, "spca50x", "spca50x_sdram_get_fat_page: dramtype %d unhandled", dramtype);
+ return GP_ERROR;
}
return GP_OK;