Undefined-shift in Imf_2_5::hufDecode
External References: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26229
Created OpenEXR tracking bugs for this issue: Affects: fedora-all [bug 1939188]
Upstream patch: https://github.com/AcademySoftwareFoundation/openexr/commit/51a92d67f53c08230734e74564c807043cbfe41e Flaw summary: In hufDecode of IlmImf/ImfHuf.cpp, if lc < 0, the getCode macro function could perform an undefined bitwise right shift with unintended consequences upon execution of `unsigned char cs = (c >> lc);` lc is controllable via the input buffer. This could potentially lead to an impact on application availability when OpenEXR processes a crafted input file.