Also verify calculated size against data size
mojodds.c @@ -349,6 +349,12 @@ return 0; } if (calcSize > *len) { // there's not enough data to contain the advertised images // trying to read mips would fail return 0; } return 1; } // parse_dds