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(targa): guard against corrupted tga files #3768

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Feb 9, 2023

  • Be more careful constructing strings from what we read in the header; corrupted files may make them not be zero-terminated. Fixes TALOS-2023-1707 / CVE-2023-24473

  • Watch out for pixels with palette indices that exceed the size we allocated for the palette. Fixes TALOS-2023-1708 / CVE-2023-22845

  • Check alpha_type for valid range.

* Be more careful constructing strings from what we read in the header;
  corrupted files may make them not be zero-terminated.
  Fixes TALOS-2023-1707 / CVE-2023-24473

* Watch out for pixels with palette indices that exceed the size we
  allocated for the palette.
  Fixes TALOS-2023-1708 / CVE-2023-22845

* Check alpha_type for valid range.
@lgritz lgritz merged commit 759fcd3 into AcademySoftwareFoundation:master Feb 9, 2023
@lgritz lgritz deleted the lg-targa branch February 9, 2023 21:36
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Feb 10, 2023
…ion#3768)

* Be more careful constructing strings from what we read in the header;
  corrupted files may make them not be zero-terminated.
  Fixes TALOS-2023-1707 / CVE-2023-24473

* Watch out for pixels with palette indices that exceed the size we
  allocated for the palette.
  Fixes TALOS-2023-1708 / CVE-2023-22845

* Check alpha_type for valid range.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant