Opened 5 years ago

Last modified 2 years ago

#2413 new defect

Handle time overflow in lease structures

Reported by: stephen Owned by:
Priority: medium Milestone: Outstanding Tasks
Component: dhcp Version:
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

Currently the cltt in a lease structure is expressed as a time_t, and the valid lifetime field as a uint32_t. The expiration time of the lease is stored in the database and is calculated as

expiration = cltt + valid_lifetime

With no restriction on valid_lifetime, it is easy for the time calculation to overflow. (On a 32-bit system, time_t is 32-bits).

Subtickets

Change History (3)

comment:1 Changed 5 years ago by stephen

  • Milestone changed from DHCP Outstanding Tasks to Sprint-DHCP-20130509

comment:2 Changed 5 years ago by stephen

  • Milestone changed from Sprint-DHCP-20130509 to DHCP Outstanding Tasks

comment:3 Changed 2 years ago by tomek

  • Milestone changed from DHCP Outstanding Tasks to Outstanding Tasks

Milestone renamed

Note: See TracTickets for help on using tickets.