di-edid-decode: fix hang with a 32 KiB file
The first fread call fills our 32768-byte buffer, and then we enter a busy loop calling fread with zero.
Found via fuzzing with AFL.
Signed-off-by: Simon Ser contact@emersion.fr
Edited by Simon Ser
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
The first fread call fills our 32768-byte buffer, and then we enter a busy loop calling fread with zero.
Found via fuzzing with AFL.
Signed-off-by: Simon Ser contact@emersion.fr