doc/website/static/security/patches/SA-03:09/signal4s.patch
Sergio Carlavilla Delgado 989d921f5d Migrate doc to Hugo/AsciiDoctor
I'm very pleased to announce the release of
our new website and documentation using
the new toolchain with Hugo and AsciiDoctor.

To get more information about the new toolchain
please read the FreeBSD Documentation Project Primer[1],
Hugo docs[2] and AsciiDoctor docs[3].

Acknowledgment:
Benedict Reuschling <bcr@>
Glen Barber <gjb@>
Hiroki Sato <hrs@>
Li-Wen Hsu <lwhsu@>
Sean Chittenden <seanc@>
The FreeBSD Foundation

[1] https://docs.FreeBSD.org/en/books/fdp-primer/
[2] https://gohugo.io/documentation/
[3] https://docs.asciidoctor.org/home/

Approved by:    doceng, core
2021-01-26 00:31:29 +01:00

43 lines
1.3 KiB
Diff

Index: sys/i386/isa/spigot.c
===================================================================
RCS file: /home/ncvs/src/sys/i386/isa/spigot.c,v
retrieving revision 1.44
diff -c -p -r1.44 spigot.c
*** sys/i386/isa/spigot.c 29 Jan 2000 16:17:36 -0000 1.44
--- sys/i386/isa/spigot.c 6 Aug 2003 21:23:07 -0000
*************** struct spigot_info *info;
*** 221,226 ****
--- 221,228 ----
if(!data) return(EINVAL);
switch(cmd){
case SPIGOT_SETINT:
+ if (*(int *)data < 0 || *(int *)data > _SIG_MAXSIG)
+ return (EINVAL);
ss->p = p;
ss->signal_num = *((int *)data);
break;
Index: sys/kern/sys_process.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/sys_process.c,v
retrieving revision 1.51.2.6
diff -c -p -r1.51.2.6 sys_process.c
*** sys/kern/sys_process.c 8 Jan 2003 03:06:45 -0000 1.51.2.6
--- sys/kern/sys_process.c 6 Aug 2003 23:16:32 -0000
*************** kern_ptrace(struct proc *curp, int req,
*** 404,410 ****
case PT_STEP:
case PT_CONTINUE:
case PT_DETACH:
! if ((req != PT_STEP) && ((unsigned)data > _SIG_MAXSIG))
return EINVAL;
PHOLD(p);
--- 404,411 ----
case PT_STEP:
case PT_CONTINUE:
case PT_DETACH:
! /* Zero means do not send any signal */
! if (data < 0 || data > _SIG_MAXSIG)
return EINVAL;
PHOLD(p);