* [2.6 patch] fs/udf/udftime.c: fix off by one error
@ 2005-04-13 2:17 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-04-13 2:17 UTC (permalink / raw)
To: Andrew Morton; +Cc: bfennema, linux_udf, linux-kernel
This patch fixes an off by one error found by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
This patch was already sent on:
- 27 Mar 2005
--- linux-2.6.12-rc1-mm1-full/fs/udf/udftime.c.old 2005-03-23 01:22:02.000000000 +0100
+++ linux-2.6.12-rc1-mm1-full/fs/udf/udftime.c 2005-03-23 01:22:13.000000000 +0100
@@ -103,7 +103,7 @@ udf_stamp_to_time(time_t *dest, long *de
offset = 0;
if ((src.year < EPOCH_YEAR) ||
- (src.year > EPOCH_YEAR+MAX_YEAR_SECONDS))
+ (src.year >= EPOCH_YEAR+MAX_YEAR_SECONDS))
{
*dest = -1;
*dest_usec = -1;
^ permalink raw reply [flat|nested] 2+ messages in thread* [2.6 patch] fs/udf/udftime.c: fix off by one error
@ 2005-03-27 20:39 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-03-27 20:39 UTC (permalink / raw)
To: bfennema; +Cc: linux_udf, linux-kernel
This patch fixes an off by one error found by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.12-rc1-mm1-full/fs/udf/udftime.c.old 2005-03-23 01:22:02.000000000 +0100
+++ linux-2.6.12-rc1-mm1-full/fs/udf/udftime.c 2005-03-23 01:22:13.000000000 +0100
@@ -103,7 +103,7 @@ udf_stamp_to_time(time_t *dest, long *de
offset = 0;
if ((src.year < EPOCH_YEAR) ||
- (src.year > EPOCH_YEAR+MAX_YEAR_SECONDS))
+ (src.year >= EPOCH_YEAR+MAX_YEAR_SECONDS))
{
*dest = -1;
*dest_usec = -1;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-13 2:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-13 2:17 [2.6 patch] fs/udf/udftime.c: fix off by one error Adrian Bunk
-- strict thread matches above, loose matches on Subject: below --
2005-03-27 20:39 Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox