edid: ignore malformed CTA extension blocks

Same as previous commit, but for CTA instead of DisplayID.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2024-05-08 09:10:58 +02:00
parent 204576ecff
commit f48cc61166

2
edid.c
View file

@ -1153,7 +1153,7 @@ parse_ext(struct di_edid *edid, const uint8_t data[static EDID_BLOCK_SIZE])
if (!_di_edid_cta_parse(&ext->cta, data, EDID_BLOCK_SIZE, &logger)) { if (!_di_edid_cta_parse(&ext->cta, data, EDID_BLOCK_SIZE, &logger)) {
free(ext); free(ext);
return false; return errno == EINVAL;
} }
break; break;
case DI_EDID_EXT_VTB: case DI_EDID_EXT_VTB: