diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2001-01-07 17:05:41 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2001-01-07 17:05:41 +0000 |
commit | 1f2c071fb4b9f8f9b3184ecd4f05bb6dde830984 (patch) | |
tree | d4d4c58707e0dd0b177011635425ad7ff4d093ca /init | |
parent | 08acb4201d53562fcbcece79de54b7314a7f8f9d (diff) |
2000-12-21 Marcus Brinkmann <marcus@gnu.org>
* init.c (process_rc_script): If malloc fails, return ENOMEM.
Reported by Igor Khavkine <i_khavki@alcor.concordia.ca>.
Diffstat (limited to 'init')
-rw-r--r-- | init/ChangeLog | 5 | ||||
-rw-r--r-- | init/init.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/init/ChangeLog b/init/ChangeLog index 0a816ccc..1d09e488 100644 --- a/init/ChangeLog +++ b/init/ChangeLog @@ -1,3 +1,8 @@ +2000-12-21 Marcus Brinkmann <marcus@gnu.org> + + * init.c (process_rc_script): If malloc fails, return ENOMEM. + Reported by Igor Khavkine <i_khavki@alcor.concordia.ca>. + 2000-03-17 Thomas Bushnell, BSG <tb@mit.edu> * init.c (launch_core_servers): Don't use MOVE_SEND in Hurd RPCs. diff --git a/init/init.c b/init/init.c index 51aa581c..986ba1e4 100644 --- a/init/init.c +++ b/init/init.c @@ -1318,6 +1318,8 @@ process_rc_script () if (do_fastboot) { rcargs = malloc (rcargslen = sizeof _PATH_RUNCOM); + if (!rcargs) + return ENOMEM; strcpy (rcargs, _PATH_RUNCOM); } else |