Fix read() usage in tccelf.c.
commitf6be0d483b29e669164565ee5f36f464991b3357
authorGiovanni Mascellani <gio@debian.org>
Sun, 13 Jan 2019 09:29:25 +0000 (13 10:29 +0100)
committerGiovanni Mascellani <gio@debian.org>
Sun, 13 Jan 2019 14:20:39 +0000 (13 15:20 +0100)
tree63348806ae11bb598686baf0aca551397dd50e81
parentacac38afb2c97e21bf1b0aa3262081d027ea3668
Fix read() usage in tccelf.c.

read() is allowed to short-read, and return less bytes then requested.
The caller must restart read() when this happens (and they want more
bytes).

This patch is still buggy, because errors are not always checked.
Still, less buggy than before.
tccelf.c