From: Karl Heuer Date: Sun, 7 Jan 1996 07:00:56 +0000 (+0000) Subject: (alloca): If malloc fails, just abort. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c25f45127e55fa44bedb0b20dccd3d1042e2dab;p=gcc.git (alloca): If malloc fails, just abort. From-SVN: r10949 --- diff --git a/gcc/alloca.c b/gcc/alloca.c index 7020f32c882..7061cec2d31 100644 --- a/gcc/alloca.c +++ b/gcc/alloca.c @@ -209,6 +209,9 @@ alloca (size) register pointer new = malloc (sizeof (header) + size); /* Address of header. */ + if (new == 0) + abort(); + ((header *) new)->h.next = last_alloca_header; ((header *) new)->h.deep = depth;