From: Omar Sandoval <osandov@osandov.com>
To: "Érico Nogueira" <ericonr@disroot.org>
Cc: elfutils-devel@sourceware.org
Subject: Re: [PATCH] libdwfl: fix crash when reading link map
Date: Wed, 9 Jun 2021 18:02:41 -0700 [thread overview]
Message-ID: <YMFksTZgDT3hwo/J@relinquished.localdomain> (raw)
In-Reply-To: <CBZJ4KLN08BH.3PCT1OMT09CLN@mussels>
On Wed, Jun 09, 2021 at 09:59:06PM -0300, Érico Nogueira wrote:
> Hope you don't mind my nit, then :)
Thanks, that's what I get for sending patches out right before dinner...
> On Wed Jun 9, 2021 at 9:51 PM -03, Omar Sandoval wrote:
> > 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
> ^^^^^^^^^^^^^ repeated words
> > > 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.
>
next prev parent reply other threads:[~2021-06-10 1:02 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
2021-06-10 0:59 ` Érico Nogueira
2021-06-10 1:02 ` Omar Sandoval [this message]
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=YMFksTZgDT3hwo/J@relinquished.localdomain \
--to=osandov@osandov.com \
--cc=elfutils-devel@sourceware.org \
--cc=ericonr@disroot.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).