mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
r9315@totoro: nickm | 2006-11-13 22:40:59 -0500
Fix a build warning on angela-sid svn:r8949
This commit is contained in:
+1
-1
@@ -1324,7 +1324,7 @@ read_file_to_str(const char *filename, int bin, size_t *size_out)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (statbuf.st_size+1 > SIZE_T_MAX)
|
||||
if ((uint64_t)(statbuf.st_size)+1 > SIZE_T_MAX)
|
||||
return NULL;
|
||||
|
||||
string = tor_malloc((size_t)(statbuf.st_size+1));
|
||||
|
||||
Reference in New Issue
Block a user