#if DEBUG
fprintf(stderr, " overlapping hole expected_offset=%d, size=%d\n", (int)expected_offset, (int)sparse->size);
#endif
- /* Must be a hole, overlap must be filled with '\0' */
- if (assert(sparse->type == HOLE)) {
+ if (sparse->type == HOLE) {
assertMemoryFilledWith(start, end - start, '\0');
+ } else if (assert(sparse->type == DATA)) {
+ assertMemoryFilledWith(start, end - start, ' ');
}
start = end;
expected_offset += sparse->size;
#if DEBUG
fprintf(stderr, " trailing overlap expected_offset=%d, size=%d\n", (int)expected_offset, (int)sparse->size);
#endif
- /* Must be a hole, overlap must be filled with '\0' */
- if (assert(sparse->type == HOLE)) {
+ if (sparse->type == HOLE) {
assertMemoryFilledWith(start, end - start, '\0');
+ } else if (assert(sparse->type == DATA)) {
+ assertMemoryFilledWith(start, end - start, ' ');
}
}
last_offset = offset + bytes_read;