public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug stdio/26214] printf_fp double free
Date: Thu, 09 Jul 2020 21:53:41 +0000	[thread overview]
Message-ID: <bug-26214-131-bQzxE8e54e@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-26214-131@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=26214

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |2.32
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Fixed for 2.32.

commit ede56038e50235cd1ca7de3602c9491d3b84b49b
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Jul 9 21:51:49 2020 +0000

    Fix double free in __printf_fp_l (bug 26214).

    __printf_fp_l has a double free bug in the case where it allocates
    memory with malloc internally, then has an I/O error while outputting
    trailing padding and tries to free that already-freed memory when the
    error occurs.  This patch fixes this by setting the relevant pointer
    to NULL after the first free (the only free of this pointer that isn't
    immediately followed by returning from the function).

    Tested for x86_64 and x86.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

      reply	other threads:[~2020-07-09 21:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-07 22:53 [Bug stdio/26214] New: " jsm28 at gcc dot gnu.org
2020-07-09 21:53 ` jsm28 at gcc dot gnu.org [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=bug-26214-131-bQzxE8e54e@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@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).