Skip to content

Fix DDS import regression from 6ad54ca3

Alx Sa requested to merge alxsa-dds-fix into master

@Wormnest pointed out that compressed files are likely smaller than width * height * bps, so our check to prevent ZDI-CAN-22093 also caught valid files.

The size check is removed from load_image () and moved to load_layer () before the two fread() functions, as we know exactly how much we'll try to read at that point.

Merge request reports