Traffic Router (TR) czCount integer overflow in Traffic Ops (TO) #7252
Labels
bug
something isn't working as intended
low difficulty
the estimated level of effort to resolve this issue is low
low impact
affects only a small portion of a CDN, and cannot itself break one
Traffic Router
related to Traffic Router
This Bug Report affects these Traffic Control components:
Current behavior:
Traffic Ops queries the Traffic Router endpoint
crs/stats
to parse / process / display information. The struct is expecting theczCount
field to be a uint64 however in at least one instance the value returned was negative (implying an Integer Overflow in TR).From the TO error log:
Looking into the response from TR, one of the routers reported:
Expected behavior:
The
czCount
field should certainly not be negative to prevent the bug from happening. However there may a bigger question in terms of "What to do when we've hit the max allowable value of a uint64? Is resetting the values considered appropriate?"Steps to reproduce:
Whew uhh. Hit an endpoint more than 2 147 483 647 times to see if it rolls over (since Java doesn't have unsigned integer types).
The text was updated successfully, but these errors were encountered: