- Timestamp:
- 06/03/09 11:21:47 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/regfi.c
r152 r154 2396 2396 } 2397 2397 2398 if(chunk_length-4 > data_left) 2398 /* XXX: This should be "chunk_length-4" to account for the 4 byte cell 2399 * length. However, it has been observed that some (all?) chunks 2400 * have an additional 4 bytes of 0 at the end of their cells that 2401 * isn't part of the data, so we're trimming that off too. 2402 */ 2403 if(chunk_length-8 >= data_left) 2399 2404 read_length = data_left; 2400 2405 else 2401 read_length = chunk_length- 4;2406 read_length = chunk_length-8; 2402 2407 2403 2408 if(regfi_read(file->fd, ret_val.buf+(data_length-data_left), … … 2415 2420 data_left -= read_length; 2416 2421 } 2417 2418 2422 free(indirect_ptrs); 2419 2423 ret_val.len = data_length-data_left; 2424 2420 2425 return ret_val; 2421 2426
Note: See TracChangeset
for help on using the changeset viewer.