public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: Omar Sandoval <osandov@osandov.com>
To: elfutils-devel@sourceware.org
Subject: Re: [PATCH] libdwfl: fix crash when reading link map
Date: Wed, 9 Jun 2021 17:51:01 -0700	[thread overview]
Message-ID: <YMFh9YSu2n4u3Q9i@relinquished.localdomain> (raw)
In-Reply-To: <9d6fa5673b548c600c23005388bb5e909983acb1.1623285930.git.osandov@fb.com>

On Wed, Jun 09, 2021 at 05:45:57PM -0700, Omar Sandoval wrote:
> From: Omar Sandoval <osandov@fb.com>
> 
> When read_addrs() was converted was converted from a nested function to
> a normal function, there was a mistake in converting "buffer" from a
> closure variable to a parameter: we are checking whether the pointer
> argument is NULL, not whether the buffer itself is NULL. This causes a
> NULL pointer dereference when we try to use the NULL buffer later.
> 
> Fixes: 3bf41d458fb6 ("link_map: Pull read_addrs() into file scope") made
                                                                      ^^^^
Stray word here, hopefully not too much trouble to fix up when applying.

  reply	other threads:[~2021-06-10  0:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-10  0:45 Omar Sandoval
2021-06-10  0:51 ` Omar Sandoval [this message]
2021-06-10  0:59   ` Érico Nogueira
2021-06-10  1:02     ` Omar Sandoval
2021-06-10 10:44 ` Dmitry V. Levin

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=YMFh9YSu2n4u3Q9i@relinquished.localdomain \
    --to=osandov@osandov.com \
    --cc=elfutils-devel@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).