diff options
| author | Yi-Yo Chiang <yochiang@google.com> | 2021-04-14 22:10:27 +0800 |
|---|---|---|
| committer | Jeff Vander Stoep <jeffv@google.com> | 2021-05-11 10:09:48 +0200 |
| commit | ff3c99978aea0e05008883bc090b10141f6929a0 (patch) | |
| tree | c28a3d85de577c17969495eb3f10e1fb9caa39a8 /libselinux/fuzzers/AndroidSetcontextFuzzer.cpp | |
| parent | 0c40b2bbcfeee9f52e3857a0d4f517d3a6d658a6 (diff) | |
secilc.c: Don't fail if input file is empty
fread(3) returns zero if |size| is zero. This confuses secilc, and
causes it to fail with a "Failure reading file" error, even though there
is no error.
Add a shortcut that closes and skips an input file if file size is zero.
Signed-off-by: Yi-Yo Chiang <yochiang@google.com>
Change-Id: I9832c62ebf6f716235e871b5e29b0fd70c94b453
Diffstat (limited to 'libselinux/fuzzers/AndroidSetcontextFuzzer.cpp')
0 files changed, 0 insertions, 0 deletions
