summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_thread.h
diff options
context:
space:
mode:
authorAndrew Clayton <andrew@digital-domain.net>2022-06-15 16:20:01 +0100
committerAndrew Clayton <andrew@digital-domain.net>2022-06-15 21:15:32 +0100
commit0d6417673bbeddf43c7c2d298a3edca4bf6ee54c (patch)
tree57431db7d6aa31960eea3d57b9478b0ba56e5f46 /src/nxt_thread.h
parent6a8081d71e805b12d0f7fd32ce72d60babadfc85 (diff)
downloadunit-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_thread.h')
0 files changed, 0 insertions, 0 deletions