Affects main only since b80b1250893c6fbaef20acab289837f174068245 (no release).
Potential crash (null-dereference) which occurred if no color palette was provided at all (neither global nor local).
Move sanity check from flushFrame() to cgif_addframe() to cover this edge case. We started to need the color palette in cgif_addframe() since #55.
Affects
main
only since b80b1250893c6fbaef20acab289837f174068245 (no release). Potential crash (null-dereference) which occurred if no color palette was provided at all (neither global nor local). Move sanity check fromflushFrame()
tocgif_addframe()
to cover this edge case. We started to need the color palette incgif_addframe()
since #55.ToDo:
Found by fuzzing cgif locally: https://github.com/google/oss-fuzz/pull/7321