diff options
| author | Andrew Clayton <andrew@digital-domain.net> | 2022-06-15 16:20:01 +0100 |
|---|---|---|
| committer | Andrew Clayton <andrew@digital-domain.net> | 2022-06-15 21:15:32 +0100 |
| commit | 0d6417673bbeddf43c7c2d298a3edca4bf6ee54c (patch) | |
| tree | 57431db7d6aa31960eea3d57b9478b0ba56e5f46 /src/nxt_socket_msg.h | |
| parent | 6a8081d71e805b12d0f7fd32ce72d60babadfc85 (diff) | |
| download | unit-archive/shiftTooManyBits.tar.gz unit-archive/shiftTooManyBits.tar.bz2 | |
Route: avoided undefined behaviour.archive/shiftTooManyBits
In src/nxt_http_route_addr.c::nxt_http_route_addr_pattern_parse() there
was potentially undefined behaviour when shifting a 32 bit value by 32
bits, this could happen if cidr_prefix was 0.
Promote the shiftee to unsigned long to avoid this issue.
Diffstat (limited to 'src/nxt_socket_msg.h')
0 files changed, 0 insertions, 0 deletions
