]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_io: fix integer over/underflow handling in timespec_from_string
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 30 Jan 2020 18:41:06 +0000 (13:41 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 30 Jan 2020 18:41:06 +0000 (13:41 -0500)
commitabbb206c8d15f8d5d4be1123d9e95aaff2e5c72a
treece85a4f74a4096431ebb121ad789078515871694
parent3f6bf9529a3357ead365ec32d7cec09818b1ac97
xfs_io: fix integer over/underflow handling in timespec_from_string

When we're filling out the struct timespec, make sure we detect when the
string value cannot be represented by a (potentially 32-bit) seconds
field in struct timespec.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxcmd/input.c