all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jim Meyering <jim@meyering.net>
To: emacs-devel@gnu.org
Subject: Re: [PATCH] don't dereference NULL upon failed malloc and realloc
Date: Mon, 22 Jun 2009 13:43:13 +0200	[thread overview]
Message-ID: <877hz4cx4e.fsf@meyering.net> (raw)
In-Reply-To: <87tz29pp6b.fsf@meyering.net> (Jim Meyering's message of "Sun, 21 Jun 2009 17:44:12 +0200")

Jim Meyering wrote:
> Hello,
>
> I noticed some potential NULL-deref-after-failed-malloc/realloc.
> Here's one way to fix them:

If no one objects, I'll commit this in about 5 hours.

>>From 4c51394b3fc14f108404689dade9629bc6b0cefc Mon Sep 17 00:00:00 2001
> From: Jim Meyering <meyering@redhat.com>
> Date: Sun, 21 Jun 2009 17:13:38 +0200
> Subject: [PATCH] don't dereference NULL upon failed malloc and realloc
>
> * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt): Use xmalloc
> and xrealloc, so subsequent dereferences of unchecked *alloc-return
> values are valid.
...




      reply	other threads:[~2009-06-22 11:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-21 15:44 [PATCH] don't dereference NULL upon failed malloc and realloc Jim Meyering
2009-06-22 11:43 ` Jim Meyering [this message]

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=877hz4cx4e.fsf@meyering.net \
    --to=jim@meyering.net \
    --cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.