[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] small fix to avoid integer overflow
From: |
Robert Millan |
Subject: |
[PATCH] small fix to avoid integer overflow |
Date: |
Sat, 17 Mar 2012 11:36:06 +0100 |
Hi,
Please consider casting the result of get_days() to time_t before
converting it to seconds (rather than afterwards). Otherwise it
becomes affected by Y2K38 bug unnecessarily.
--
Robert Millan
expiration_days_overflow.diff
Description: Text document
- [PATCH] small fix to avoid integer overflow,
Robert Millan <=