bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] [PATCH] fix overflow in code_ns_fraction()


From: Andreas Dilger
Subject: [Bug-tar] [PATCH] fix overflow in code_ns_fraction()
Date: Fri, 05 Feb 2010 01:48:00 -0700

If the on-disk nanoseconds count happens to exceed 999,999,999 then code_ns_fraction() will overflow the 9-character array and segfault. While this shouldn't happen normally, it can happen due to corruption of the on-disk data. If the ns field is larger than 999,999,999 truncate it to this value

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

Attachment: tar-1.22-code_ns-overflow.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]