* Fixed a few signed/unsigned confusions.
This commit is contained in:
+3
-3
@@ -44,8 +44,8 @@ static enum fuzzing
|
||||
fuzzing;
|
||||
|
||||
/* Per-offset byte protection */
|
||||
static unsigned int *ranges = NULL;
|
||||
static unsigned int ranges_static[512];
|
||||
static int *ranges = NULL;
|
||||
static int ranges_static[512];
|
||||
|
||||
/* Per-value byte protection */
|
||||
static int protect[256];
|
||||
@@ -109,7 +109,7 @@ void _zz_refuse(char const *list)
|
||||
readchars(refuse, list);
|
||||
}
|
||||
|
||||
void _zz_fuzz(int fd, volatile uint8_t *buf, uint64_t len)
|
||||
void _zz_fuzz(int fd, volatile uint8_t *buf, int64_t len)
|
||||
{
|
||||
int64_t start, stop;
|
||||
int64_t pos = _zz_getpos(fd);
|
||||
|
||||
+1
-1
@@ -21,5 +21,5 @@ extern void _zz_bytes(char const *);
|
||||
extern void _zz_protect(char const *);
|
||||
extern void _zz_refuse(char const *);
|
||||
|
||||
extern void _zz_fuzz(int, volatile uint8_t *, uint64_t);
|
||||
extern void _zz_fuzz(int, volatile uint8_t *, int64_t);
|
||||
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ struct fuzz
|
||||
#ifdef HAVE_FGETLN
|
||||
char *tmp;
|
||||
#endif
|
||||
int uflag; uint64_t upos; uint8_t uchar; /* ungetc stuff */
|
||||
int uflag; int64_t upos; uint8_t uchar; /* ungetc stuff */
|
||||
uint8_t data[CHUNKBYTES];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user