Changeset 1644 for zzuf/trunk
- Timestamp:
- Jan 10, 2007, 6:25:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/src/load-mem.c
r1643 r1644 322 322 { 323 323 /* FIXME: do we also have to rewind the filedescriptor like in mmap? */ 324 void*b = malloc(numbytes);324 char *b = malloc(numbytes); 325 325 memcpy(b, (void *)*addr, numbytes); 326 _zz_fuzz(fd, b, numbytes);326 _zz_fuzz(fd, (void *)b, numbytes); 327 327 *addr = (vm_offset_t)b; 328 328 /* FIXME: the map is never freed; there is no such thing as unmap_fd,
Note: See TracChangeset
for help on using the changeset viewer.