mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Base SIZE_T_CEILING on SSIZE_T_MAX.
This commit is contained in:
parent
78df6404eb
commit
649ee99846
@ -331,7 +331,7 @@ typedef uint32_t uintptr_t;
|
||||
#endif
|
||||
|
||||
/* Any size_t larger than this amount is likely to be an underflow. */
|
||||
#define SIZE_T_CEILING (sizeof(char)<<(sizeof(size_t)*8 - 1))
|
||||
#define SIZE_T_CEILING (SSIZE_T_MAX-16)
|
||||
|
||||
#endif /* __TORINT_H */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user