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