Skip to content

Commit

Permalink
Manually zero out colorants/chad in calcYUVInfoFromICC() to be friend…
Browse files Browse the repository at this point in the history
…ly to static analysis (benign)
  • Loading branch information
Joe Drago committed Apr 16, 2020
1 parent dcb2acf commit efd0396
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/colr.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ static avifBool calcYUVInfoFromICC(const uint8_t * iccData, size_t iccSize, floa
gbMat3 colorants;
gbMat3 chad, invChad;
gbVec3 wtpt;
for (int i = 0; i < 9; ++i) {
colorants.e[i] = 0.0f;
chad.e[i] = 0.0f;
}
wtpt.e[0] = 0.0f;
wtpt.e[1] = 0.0f;
wtpt.e[2] = 0.0f;
Expand Down

0 comments on commit efd0396

Please sign in to comment.