Changeset 1736
- Timestamp:
- Feb 2, 2007, 12:58:06 PM (16 years ago)
- Location:
- zzuf/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/msvc/config.h
r1730 r1736 36 36 typedef unsigned char uint8_t; 37 37 38 typedef unsigned long int uintptr_t; 38 #include <stddef.h> /* Has uintptr_t etc. */ 39 39 typedef int pid_t; 40 40 -
zzuf/trunk/src/fuzz.c
r1732 r1736 116 116 struct fuzz *fuzz; 117 117 volatile uint8_t *aligned_buf; 118 int i, j, todo; 118 int64_t i, j; 119 int todo; 119 120 120 121 #if 0 … … 133 134 if(fuzz->cur != (int)i) 134 135 { 135 uint32_t chunkseed = ( i + (int)(fuzz->ratio * MAGIC1)) ^ MAGIC2;136 uint32_t chunkseed = ((int)i + (int)(fuzz->ratio * MAGIC1)) ^ MAGIC2; 136 137 _zz_srand(fuzz->seed ^ chunkseed); 137 138 … … 247 248 && tmp[2] && strchr(hex, tmp[2])) 248 249 { 249 new = (( strchr(hex, tmp[1]) - hex) & 0xf) << 4;250 new |= ( strchr(hex, tmp[2]) - hex) & 0xf;250 new = ((int)(strchr(hex, tmp[1]) - hex) & 0xf) << 4; 251 new |= (int)(strchr(hex, tmp[2]) - hex) & 0xf; 251 252 tmp += 2; 252 253 } -
zzuf/trunk/src/libzzuf.h
r1732 r1736 35 35 uint32_t seed; 36 36 double ratio; 37 int cur;37 int64_t cur; 38 38 #ifdef HAVE_FGETLN 39 39 char *tmp; -
zzuf/trunk/src/mygetopt.c
r1733 r1736 87 87 for(i = 0; longopts[i].name; i++) 88 88 { 89 int l = strlen(longopts[i].name);89 size_t l = strlen(longopts[i].name); 90 90 91 91 if(strncmp(flag + 2, longopts[i].name, l)) -
zzuf/trunk/src/zzuf.c
r1733 r1736 429 429 else while(ret) 430 430 { 431 if((nw = write(1, buf + off, ( size_t)ret)) < 0)431 if((nw = write(1, buf + off, (unsigned int)ret)) < 0) 432 432 break; 433 433 ret -= nw; … … 1033 1033 } 1034 1034 1035 return ( char *)nt->OptionalHeader.ImageBase +1036 nt->OptionalHeader.AddressOfEntryPoint;1035 return (void *)(uintptr_t)(nt->OptionalHeader.ImageBase + 1036 nt->OptionalHeader.AddressOfEntryPoint); 1037 1037 } 1038 1038 #endif
Note: See TracChangeset
for help on using the changeset viewer.