public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Christian Iseli <chris@lslsun.epfl.ch>
To: egcs@cygnus.com
Subject: Small problem in cse
Date: Fri, 17 Oct 1997 13:44:00 -0000	[thread overview]
Message-ID: <199710172043.WAA24596@Rivendell.MiddleEarth.net> (raw)

Hi,

I've received a segfault from cc1 due to a NULL dereference in cse.c.  The 
following
trivial patch cures the problem.

					Christian

Fri Oct 17 12:29:48 1997  Christian Iseli  <Christian.Iseli@lslsun.epfl.ch>

	* cse.c (insert): check that classp->first_same_value is not NULL
 	before dereferencing.


*** cse.c.orig	Wed Oct  1 07:46:27 1997
--- cse.c	Fri Oct 17 22:30:11 1997
*************** insert (x, classp, hash, mode)
*** 1323,1329 ****
    table[hash] = elt;
  
    /* Put it into the proper value-class.  */
!   if (classp)
      {
        classp = classp->first_same_value;
        if (CHEAPER (elt, classp))
--- 1323,1329 ----
    table[hash] = elt;
  
    /* Put it into the proper value-class.  */
!   if (classp && classp->first_same_value)
      {
        classp = classp->first_same_value;
        if (CHEAPER (elt, classp))



             reply	other threads:[~1997-10-17 13:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-17 13:44 Christian Iseli [this message]
1997-10-17 19:06 ` Jeffrey A Law
1997-10-20  1:43 Christian Iseli
1997-10-20  9:43 ` Jeffrey A Law
1997-10-20 13:28   ` Christian Iseli
1997-10-26 23:47 Christian Iseli
1997-10-27  6:02 ` Joern Rennecke
1997-10-28  7:06 Christian Iseli
1997-10-28  7:11 ` Joern Rennecke
1997-12-02  7:10 Christian Iseli
1997-12-06  7:51 ` Jeffrey A Law

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199710172043.WAA24596@Rivendell.MiddleEarth.net \
    --to=chris@lslsun.epfl.ch \
    --cc=egcs@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).