mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
This commit is contained in:
commit
f089804332
6
changes/bug2326
Normal file
6
changes/bug2326
Normal file
@ -0,0 +1,6 @@
|
||||
o Minor bugfixes
|
||||
- Fix a bug where we would assert if we ever had a
|
||||
cached-descriptors.new file (or another file read directly into
|
||||
memory) of exactly SIZE_T_CEILING bytes. Found by doors; fixes
|
||||
bug 2326; bugfix on 0.2.1.25.
|
||||
|
@ -2140,7 +2140,7 @@ read_file_to_str(const char *filename, int flags, struct stat *stat_out)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if ((uint64_t)(statbuf.st_size)+1 > SIZE_T_CEILING)
|
||||
if ((uint64_t)(statbuf.st_size)+1 >= SIZE_T_CEILING)
|
||||
return NULL;
|
||||
|
||||
string = tor_malloc((size_t)(statbuf.st_size+1));
|
||||
|
Loading…
Reference in New Issue
Block a user