diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2015-03-17 00:24:34 +0300 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2015-03-17 00:24:34 +0300 |
| commit | 44a2b97bd2773dc679ebce32eaf3c6f4f665f36c (patch) | |
| tree | 18664ebf3ab9605c3b1e2f14cb4b60fe9d6419aa /src/core | |
| parent | 0071fbb9e6685b76a4865f460cb674020dfdf8ec (diff) | |
| download | nginx-44a2b97bd2773dc679ebce32eaf3c6f4f665f36c.tar.gz nginx-44a2b97bd2773dc679ebce32eaf3c6f4f665f36c.tar.bz2 | |
Core: expose maximum values of time_t and ngx_int_t.
These are needed to detect overflows.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/ngx_config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ngx_config.h b/src/core/ngx_config.h index 1da71f8d1..145e43a44 100644 --- a/src/core/ngx_config.h +++ b/src/core/ngx_config.h @@ -85,8 +85,11 @@ typedef intptr_t ngx_flag_t; #if (NGX_PTR_SIZE == 4) #define NGX_INT_T_LEN NGX_INT32_LEN +#define NGX_MAX_INT_T_VALUE 2147483647 + #else #define NGX_INT_T_LEN NGX_INT64_LEN +#define NGX_MAX_INT_T_VALUE 9223372036854775807 #endif |
