Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add offset_ and size_ safely in LoaderExifJpeg::LoaderExifJpeg
offset_ can become arbitrarily large and overflows once its added to size_, this causes all kinds of problems further in the code when offset_ is used again. => Use Safe::add() to catch potential overflows This fixes Exiv2#365.
- Loading branch information