git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libc+AxWin3 - RichText rendering, scanf
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
syscalls.c
diff --git
a/KernelLand/Kernel/syscalls.c
b/KernelLand/Kernel/syscalls.c
index
0348d57
..
bfd68bf
100644
(file)
--- a/
KernelLand/Kernel/syscalls.c
+++ b/
KernelLand/Kernel/syscalls.c
@@
-135,13
+135,10
@@
void SyscallHandler(tSyscallRegs *Regs)
// -- Check for messages
case SYS_GETMSG:
CHECK_NUM_NULLOK( (Uint*)Regs->Arg1, sizeof(Uint) );
// -- Check for messages
case SYS_GETMSG:
CHECK_NUM_NULLOK( (Uint*)Regs->Arg1, sizeof(Uint) );
- // NOTE: Can't do range checking as we don't know the size
- // - Should be done by Proc_GetMessage
- if( Regs->Arg2 && Regs->Arg2 != -1 && !MM_IsUser(Regs->Arg2) ) {
- err = -EINVAL; ret = -1; break;
- }
+ if( Regs->Arg3 != -1 )
+ CHECK_NUM_NULLOK((void*)Regs->Arg3, Regs->Arg2);
// *Source, *Data
// *Source, *Data
- ret = Proc_GetMessage((Uint*)Regs->Arg1,
(void*)Regs->Arg2
);
+ ret = Proc_GetMessage((Uint*)Regs->Arg1,
Regs->Arg2, (void*)Regs->Arg3
);
break;
// -- Get the current timestamp
break;
// -- Get the current timestamp
UCC
git Repository :: git.ucc.asn.au