tjr f2b3ceb410 Fix some security bugs in the SVR4 emulator:
- Return NULL instead of returning memory outside of the stackgap
  in stackgap_alloc() (FreeBSD-SA-00:42.linux)
- Check for stackgap_alloc() returning NULL in svr4_emul_find(),
  and clean_pipe().
- Avoid integer overflow on large nfds argument in svr4_sys_poll()
- Reject negative nbytes argument in svr4_sys_getdents()
- Don't copy out past the end of the struct componentname
  pathname buffer in svr4_sys_resolvepath()
- Reject out-of-range signal numbers in svr4_sys_sigaction(),
  svr4_sys_signal(), and svr4_sys_kill().
- Don't malloc() user-specified lengths in show_ioc() and
  show_strbuf(), place arbitrary limits instead.
- Range-check lengths in si_listen(), ti_getinfo(), ti_bind(),
  svr4_do_putmsg(), svr4_do_getmsg(), svr4_stream_ti_ioctl().

Some fixes obtain from OpenBSD.
2003-10-20 10:38:48 +00:00
..
2003-10-18 17:26:13 +00:00
2003-10-17 20:20:14 +00:00
2003-10-18 14:10:28 +00:00
2003-09-02 17:30:40 +00:00
2003-10-18 17:51:26 +00:00
2003-10-18 14:10:28 +00:00
2003-10-18 05:41:31 +00:00
2003-10-12 22:04:24 +00:00
2003-10-18 14:10:28 +00:00
2003-10-19 11:35:44 +00:00
2003-08-29 23:25:00 +00:00
2003-10-18 14:10:28 +00:00