Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TIFF OOB Write error #5175

Merged
merged 2 commits into from Jan 2, 2021
Merged

Fix TIFF OOB Write error #5175

merged 2 commits into from Jan 2, 2021

Commits on Jan 2, 2021

  1. Fix CVE-2020-35654 - OOB Write in TiffDecode.c

    * In some circumstances with some versions of libtiff (4.1.0+), there
      could be a 4 byte out of bound write when decoding a YCbCr tiff.
    * The Pillow code dates to 6.0.0
    * Found and reported through Tidelift
    wiredfool authored and radarhere committed Jan 2, 2021
    Copy the full SHA
    eb8c120 View commit details
    Browse the repository at this point in the history
  2. Rework ReadTile

    * Don't malloc for the swap line, just shuffle backwards
    * Ensure that im->pixelsize is sanity checked
    * Ensure that we're using the right size for the buffer from TiffReadRGBATile
    wiredfool authored and radarhere committed Jan 2, 2021
    Copy the full SHA
    45a62e9 View commit details
    Browse the repository at this point in the history