1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00
cde/src/cmd/ksh93/sh
Martijn Dekker 51b2e360fa job_reap(): fix use of unitialised pointer
This solves another intermittent crash that happened upon
processing SIGWINCH in the emacs editor. See also: 7ff6b73b

I found this bug while testing ksh 93u+m on OpenBSD. Due to its
pervasive security hardening, this system crashes a program
reliably where others crash it intermittently, which is invaluable.

src/cmd/ksh93/sh/jobs.c: job_reap():
- The pw pointer is not ever given a value if the loop breaks on
  line 318-319, but it is used unconditionally on lines 464-470,
  Initialise the pointer to null on function entry and do not call
  job_list() and job_unpost() if the pointer is still null.
2021-02-20 23:40:00 +00:00
..
args.c Fix bugs related to --posix shell option (re: 921bbcae, f45a0f16) 2021-02-14 23:51:19 +00:00
arith.c libast: Update cdt(3): Allow empty strings in (dt)trees 2021-01-28 02:44:52 +00:00
array.c Correctly block invalid values for arrays of an enum type 2021-02-01 16:57:43 +00:00
defs.c test/[: use a shell state bit (re: 7003aba4) 2020-08-30 05:33:59 +01:00
deparse.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
expand.c Fix compile/regress fails on compiling without SHOPT_* options 2021-02-08 22:02:45 +00:00
fault.c DEBUG trap: restore status 2 trigger to skip command (re: d00b4b39) 2021-02-20 05:13:51 +00:00
fcin.c Fix parsing of multibyte characters 2020-06-12 01:45:17 +02:00
init.c Fix bugs related to --posix shell option (re: 921bbcae, f45a0f16) 2021-02-14 23:51:19 +00:00
io.c Error out on 'redirect >foo' inside ${ shared-state comsub; } 2021-02-20 19:52:08 +00:00
jobs.c job_reap(): fix use of unitialised pointer 2021-02-20 23:40:00 +00:00
lex.c Fix BUG_CASEEMPT: empty 'case' list was syntax error 2021-02-16 06:50:12 +00:00
macro.c Fix many spelling errors and word repetitions (#188) 2021-02-20 03:22:24 +00:00
main.c libast: Update cdt(3): Allow empty strings in (dt)trees 2021-01-28 02:44:52 +00:00
name.c Fix multiple buffer overflows with justified strings (-L/-R/-Z) 2021-02-20 13:05:38 +00:00
nvdisc.c Fix various possible uses of uninitialised variables 2021-01-28 04:54:41 +00:00
nvtree.c Fix disabling SHOPT_FIXEDARRAY (re: 2182ecfa) 2021-02-10 04:48:56 +00:00
nvtype.c Fix typos in <customtypecommand> --man self-documentation 2021-02-10 16:25:11 +00:00
parse.c Disallow >;word and <>;word for 'redirect' (re: 7b59fb80, 7b82c338) 2021-02-07 03:23:56 +00:00
path.c Fix bugs related to --posix shell option (re: 921bbcae, f45a0f16) 2021-02-14 23:51:19 +00:00
pmain.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
shcomp.c resolve/remove USAGE_LICENSE macros; remove repetitive (c) strings 2021-01-31 11:00:49 +00:00
streval.c silence macro redefinition warnings (re: 7003aba4) 2020-06-16 04:51:21 +02:00
string.c Fix garbled output from Ctrl+Alt+V (#135) 2020-09-25 03:37:22 +01:00
subshell.c Fix many spelling errors and word repetitions (#188) 2021-02-20 03:22:24 +00:00
suid_exec.c rm redundant getpid(2) syscalls (re: 9de65210) 2020-09-23 04:19:02 +02:00
tdump.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
timers.c rm redundant getpid(2) syscalls (re: 9de65210) 2020-09-23 04:19:02 +02:00
trestore.c '#if 0' cleanup 2020-08-30 04:51:20 +01:00
waitevent.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
xec.c DEBUG trap: restore status 2 trigger to skip command (re: d00b4b39) 2021-02-20 05:13:51 +00:00