baresip / re

Generic library for real-time communications with async IO support
BSD 3-Clause "New" or "Revised" License
135 stars 83 forks source link

dns/rr: fix dns_rr_print underflow #1162

Closed sreimers closed 2 months ago

sreimers commented 2 months ago

found by coverity:

CID 400048: (#1 of 1): Overflowed constant (INTEGER_OVERFLOW)
6. overflow_const: Expression n--, which is equal to 18446744073709551615, where n is known to be equal to 0, underflows the type that receives it, an unsigned integer 64 bits wide.