aboutsummaryrefslogtreecommitdiff
path: root/src/stream/ngx_stream_access_module.c
Commit message (Collapse)AuthorAge
* Fixed undefined behaviour with IPv4-mapped IPv6 addresses.Sergey Kandaurov2024-03-18
| | | | | | | | | | | | | | | | Previously, it could result when left-shifting signed integer due to implicit integer promotion, such that the most significant bit appeared on the sign bit. In practice, though, this results in the same left value as with an explicit cast, at least on known compilers, such as GCC and Clang. The reason is that in_addr_t, which is equivalent to uint32_t and same as "unsigned int" in ILP32 and LP64 data type models, has the same type width as the intermediate after integer promotion, so there's no side effects such as sign-extension. This explains why adding an explicit cast does not change object files in practice. Found with UndefinedBehaviorSanitizer (shift). Based on a patch by Piotr Sikora.
* Access: simplified rule parser code.Ruslan Ermilov2017-05-15
|
* Stream: phases.Roman Arutyunyan2016-09-15
|
* Stream: added preconfiguration step.Vladimir Homutov2016-06-15
|
* Stream: access module.Vladimir Homutov2015-06-04
stream { server { ... allow 127.0.0.1; deny all; } }