mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
Merge remote branch 'origin/maint-0.2.1' into maint-0.2.2
This commit is contained in:
commit
cee433d751
4
changes/bug2324
Normal file
4
changes/bug2324
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
o Minor bugfixes
|
||||||
|
- Add a check for SIZE_T_MAX to tor_realloc to try to avoid
|
||||||
|
underflow errors there too. Fixes bug 2324.
|
||||||
|
|
@ -174,6 +174,8 @@ _tor_realloc(void *ptr, size_t size DMALLOC_PARAMS)
|
|||||||
{
|
{
|
||||||
void *result;
|
void *result;
|
||||||
|
|
||||||
|
tor_assert(size < SIZE_T_CEILING);
|
||||||
|
|
||||||
#ifdef USE_DMALLOC
|
#ifdef USE_DMALLOC
|
||||||
result = dmalloc_realloc(file, line, ptr, size, DMALLOC_FUNC_REALLOC, 0);
|
result = dmalloc_realloc(file, line, ptr, size, DMALLOC_FUNC_REALLOC, 0);
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user