commit | 3e408d59c4f0071f140867ba7cc00ba44ad264b3 | [log] [tgz] |
---|---|---|
author | Philippe Antoine <contact@catenacyber.fr> | Wed Jul 10 01:09:50 2019 +0200 |
committer | Philippe Antoine <contact@catenacyber.fr> | Wed Jul 10 01:09:50 2019 +0200 |
tree | 0d8877fff986db2bd7a3546df3fe6825235208cf | |
parent | 702c65922f51c548a40a6fd4a112e7568cf9d207 [diff] [blame] |
Fixes warnings from MSVC
diff --git a/programs/fuzz/common.c b/programs/fuzz/common.c index a9d3d3b..169b480 100644 --- a/programs/fuzz/common.c +++ b/programs/fuzz/common.c
@@ -26,7 +26,10 @@ (void) buf; //pretends we wrote everything ok - return( len ); + if (len > INT_MAX) { + return -1; + } + return int( len ); } int fuzz_recv( void *ctx, unsigned char *buf, size_t len )