]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (gpt) care about SSIZE_MAX for read(2)
authorKarel Zak <kzak@redhat.com>
Thu, 6 Apr 2017 10:13:46 +0000 (12:13 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 6 Apr 2017 10:13:46 +0000 (12:13 +0200)
commita8294f401f627bd6e9f918d629caebfdf4bdc9f6
tree81290d4bd496ceadc35c357bccd60ff36838fb36
parent9e320545bb6186b14aa9339cdcb83cfce1d9221b
libfdisk: (gpt) care about SSIZE_MAX for read(2)

read(2) behavior is undefined if you want to read more  than SSIZE_MAX
bytes. Let's be paranoid and check for this...

Reported-by: Ruediger Meier <sweet_f_a@gmx.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/gpt.c