public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: msnyder@sonic.net
To: binutils@sourceware.org
Subject: [patch] check return from bfd_make_section
Date: Wed, 25 Jul 2007 21:34:00 -0000	[thread overview]
Message-ID: <6879.12.7.175.2.1185399177.squirrel@webmail.sonic.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 50 bytes --]

Usually gets checked.  Ptr will be dereferenced.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: tekhex.c --]
[-- Type: text/x-csrc; name="tekhex.c", Size: 633 bytes --]

2007-07-25  Michael Snyder  <msnyder@access-company.com>

	* tekhex.c (first_phase): Check return value for null.

Index: tekhex.c
===================================================================
RCS file: /cvs/src/src/bfd/tekhex.c,v
retrieving revision 1.32
diff -p -r1.32 tekhex.c
*** tekhex.c	3 Jul 2007 14:26:42 -0000	1.32
--- tekhex.c	25 Jul 2007 21:31:17 -0000
*************** first_phase (bfd *abfd, int type, char *
*** 389,394 ****
--- 389,396 ----
  	    return FALSE;
  	  memcpy (n, sym, len + 1);
  	  section = bfd_make_section (abfd, n);
+ 	  if (section == NULL)
+ 	    return FALSE;
  	}
        while (*src)
  	{

             reply	other threads:[~2007-07-25 21:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-25 21:34 msnyder [this message]
2007-07-26  6:51 ` Alan Modra
2007-07-26 18:21   ` msnyder

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=6879.12.7.175.2.1185399177.squirrel@webmail.sonic.net \
    --to=msnyder@sonic.net \
    --cc=binutils@sourceware.org \
    /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).