Avis claims customer circled the globe in 3 days, charges her $8,079.76

Their software apparently stores the distance driven as a uint16, so negative numbers aren’t possible, and whatever code they’re using takes the modulus rather than bounding so -29054 got converted to 36482 when cast as a uint16 (2^16 - 29054 = 36482).

So if anyone wants to pay no mileage from this renter they should keep the vehicle until they’ve driven 65536 km and it will revert to 0 km driven on the receipt

edit: their/they’re tyop

14 Likes