Skip to content

Commit

Permalink
fix: Prevent exif nullptr (DEV-4521) (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
siers authored Jan 21, 2025
1 parent de9e393 commit 4231f00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SipiImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ SipiImage::SipiImage()
exif = nullptr;
skip_metadata = SkipMetadata::SKIP_NONE;
conobj = nullptr;
ensure_exif();
};
//============================================================================

Expand Down Expand Up @@ -137,7 +138,7 @@ SipiImage::SipiImage(size_t nx_p, size_t ny_p, size_t nc_p, size_t bps_p, Photom
xmp = nullptr;
icc = nullptr;
iptc = nullptr;
exif = nullptr;
ensure_exif();
skip_metadata = SkipMetadata::SKIP_NONE;
conobj = nullptr;
}
Expand Down

0 comments on commit 4231f00

Please sign in to comment.