public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug string/30555] New: strerror can incorrectly return NULL
@ 2023-06-15  9:49 fweimer at redhat dot com
  2023-06-15  9:50 ` [Bug string/30555] " fweimer at redhat dot com
  2023-06-15 20:02 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2023-06-15  9:49 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 30555
           Summary: strerror can incorrectly return NULL
           Product: glibc
           Version: 2.32
            Status: NEW
          Severity: normal
          Priority: P2
         Component: string
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
  Target Milestone: ---

If the internal asprintf call fails due to malloc failure, strerror returns
NULL. POSIX does not allow this return value.

Found through code review, no application impact known.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug string/30555] strerror can incorrectly return NULL
  2023-06-15  9:49 [Bug string/30555] New: strerror can incorrectly return NULL fweimer at redhat dot com
@ 2023-06-15  9:50 ` fweimer at redhat dot com
  2023-06-15 20:02 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2023-06-15  9:50 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |fweimer at redhat dot com
                 CC|                            |fweimer at redhat dot com
           See Also|                            |https://sourceware.org/bugz
                   |                            |illa/show_bug.cgi?id=1890
              Flags|                            |security-
             Status|NEW                         |ASSIGNED

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug string/30555] strerror can incorrectly return NULL
  2023-06-15  9:49 [Bug string/30555] New: strerror can incorrectly return NULL fweimer at redhat dot com
  2023-06-15  9:50 ` [Bug string/30555] " fweimer at redhat dot com
@ 2023-06-15 20:02 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2023-06-15 20:02 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Target Milestone|---                         |2.38
             Status|ASSIGNED                    |RESOLVED

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
Fixed for 2.38 via:

commit 1d44530a5be2442e064baa48139adc9fdfb1fc6b
Author: Florian Weimer <fweimer@redhat.com>
Date:   Thu Jun 15 12:08:22 2023 +0200

    string: strerror must not return NULL (bug 30555)

    For strerror, this fixes commit 28aff047818eb1726394296d27b ("string:
    Implement strerror in terms of strerror_l").  This commit avoids
    returning NULL for strerror_l as well, although POSIX allows this
    behavior for strerror_l.

    Reviewed-by: Arjun Shankar <arjun@redhat.com>

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-06-15 20:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-15  9:49 [Bug string/30555] New: strerror can incorrectly return NULL fweimer at redhat dot com
2023-06-15  9:50 ` [Bug string/30555] " fweimer at redhat dot com
2023-06-15 20:02 ` fweimer at redhat dot com

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).