mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
fuzz: avoid assertion for ExecContext.private_var_tmp triggered
Follow-up for 6156bec7a4.
Fixes #38037 and oss-fuzz#429112745.
This commit is contained in:
committed by
Luca Boccassi
parent
7ba5950307
commit
34af1513d0
@@ -45,10 +45,10 @@ static void exec_fuzz_one(FILE *f, FDSet *fdset) {
|
||||
};
|
||||
|
||||
exec_context_init(&exec_context);
|
||||
exec_context.private_var_tmp = PRIVATE_TMP_DISCONNECTED;
|
||||
cgroup_context_init(&cgroup_context);
|
||||
|
||||
(void) exec_deserialize_invocation(f, fdset, &exec_context, &command, ¶ms, &runtime, &cgroup_context);
|
||||
exec_context.private_var_tmp = PRIVATE_TMP_DISCONNECTED; /* The deserialization in the above may set an invalid value. */
|
||||
(void) exec_serialize_invocation(f, fdset, &exec_context, &command, ¶ms, &runtime, &cgroup_context);
|
||||
(void) exec_deserialize_invocation(f, fdset, &exec_context, &command, ¶ms, &runtime, &cgroup_context);
|
||||
|
||||
|
||||
BIN
test/fuzz/fuzz-execute-serialize/oss-fuzz-429112745
Normal file
BIN
test/fuzz/fuzz-execute-serialize/oss-fuzz-429112745
Normal file
Binary file not shown.
Reference in New Issue
Block a user