mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
fuzz: use fflush() and drop unnecessary rewind()
This commit is contained in:
parent
84fb56d396
commit
7cd1f60df0
@ -18,7 +18,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
if (size != 0)
|
||||
assert_se(fwrite(data, size, 1, f) == 1);
|
||||
|
||||
rewind(f);
|
||||
fflush(f);
|
||||
assert_se(manager_new(&manager) >= 0);
|
||||
(void) netdev_load_one(manager, netdev_config);
|
||||
return 0;
|
||||
|
@ -18,7 +18,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
if (size != 0)
|
||||
assert_se(fwrite(data, size, 1, f) == 1);
|
||||
|
||||
rewind(f);
|
||||
fflush(f);
|
||||
assert_se(manager_new(&manager) >= 0);
|
||||
(void) network_load_one(manager, network_config);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user