ipcpipe Add pipe ownership guards

This commit is contained in:
2025-10-01 19:57:09 +02:00
parent fa8a774115
commit 0e4a35eb86
2 changed files with 5 additions and 6 deletions

View File

@ -62,10 +62,10 @@ int32_t SYSCALL5(sys_processctl, pid1, cmd1, arg1, arg2, arg3) {
}
size_t argslen = arg3;
char *(*args)[] = (char *(*)[])arg2;
char **args = (char **)arg2;
if (args != NULL && argslen > 0) {
for (size_t i = 0; i < argslen; i++) {
PROC_ARG(newproc, (*args)[i]);
PROC_ARG(newproc, args[i]);
}
}