more sanity checks to avoid buffer overflows (AFL)
more sanity checks to avoid buffer overflows (AFL)

gphoto/libgphoto2,gphoto/libgphoto2,gphoto/libgphoto2,gphoto/libgphoto2,gphoto/libgphoto2,gphoto/libgphoto2