fuzz: avoid assertion for ExecContext.private_var_tmp triggered

Follow-up for 6156bec7a4.

Fixes #38037 and oss-fuzz#429112745.
This commit is contained in:
Yu Watanabe
2025-07-03 14:29:55 +09:00
committed by Luca Boccassi
parent 7ba5950307
commit 34af1513d0
2 changed files with 1 additions and 1 deletions

View File

@@ -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, &params, &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, &params, &runtime, &cgroup_context);
(void) exec_deserialize_invocation(f, fdset, &exec_context, &command, &params, &runtime, &cgroup_context);

Binary file not shown.