Skip to content
  • Ondřej Surý's avatar
    Fix isc_time_add() overflow · 8c05f12b
    Ondřej Surý authored and Ondřej Surý's avatar Ondřej Surý committed
    The isc_time_add() could overflow when t.seconds + i.seconds == UINT_MAX
    and t.nanoseconds + i.nanoseconds >= NS_PER_S.
    
    Fix the overflow in isc_time_add(), and simplify the ISC_R_RANGE checks
    both in isc_time_add() and isc_time_subtract() functions.
    8c05f12b