diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2020-05-24 10:23:50 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2020-05-24 10:23:50 +0200 |
commit | a75673692ba904ac2e292dc3b80c714dbe44d76a (patch) | |
tree | 2348663689341ec9c7c35fc90f8ff39577709a97 | |
parent | 691514583444d71c25ddd7b380dc1048c808039a (diff) | |
download | libgphoto2-a75673692ba904ac2e292dc3b80c714dbe44d76a.tar.gz |
also add xlen 0 condition to eos reader
-rw-r--r-- | camlibs/ptp2/library.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index b0007c596..a76665f35 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -7942,6 +7942,10 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, free (ximage); ximage = NULL; offset += xsize; + if (!xsize) { + GP_LOG_E ("getpartialobject loop: offset=%d, size is %d, xlen returned is 0?", offset, size); + break; + } } goto done; } |