int i, okmem;
/* Is it a gzip image? */
- if (check_zip ((void *)where, size, &zbytes, &gzdatasize,
- &orig_crc, &offset) == 0) {
+ if (check_zip((void *)where, size, &zbytes, &gzdatasize,
+ &orig_crc, &offset) == 0) {
if (offset + zbytes > size) {
/* Assertion failure; check_zip is supposed to guarantee this
/* Must be memory */
if ( ranges[i].type != 1 )
continue;
+ if (!(ranges[i].extattr & 1))
+ continue;
/* Range start */
if ( ranges[i].start >= 0xFFFFFFFF )
continue;
+
startrange = (uint32_t)ranges[i].start;
/* Range end (0 for end means 2^64) */