public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13179] New: netname2host() uses uninitialized memory
@ 2011-09-12 10:12 thomas.jarosch at intra2net dot com
  2011-09-29  8:08 ` [Bug libc/13179] " aj at suse dot de
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: thomas.jarosch at intra2net dot com @ 2011-09-12 10:12 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13179

             Bug #: 13179
           Summary: netname2host() uses uninitialized memory
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: thomas.jarosch@intra2net.com
    Classification: Unclassified


Hello,

the file "sunrpc/netname.c" contains this function in git head:

----------------------------------------------
int
netname2host (const char netname[MAXNETNAMELEN + 1], char *hostname,
              const int hostlen)
{
  char *p1, *p2;
  char buffer[MAXNETNAMELEN + 1];

  p1 = strchr (buffer, '.');
...
----------------------------------------------

The "cppcheck" linter reports:
[sunrpc/netname.c:201]: (error) Uninitialized variable: buffer


-> The current code looks like a merge error/bogus to me.

Best regards,
Thomas Jarosch

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/13179] netname2host() uses uninitialized memory
  2011-09-12 10:12 [Bug libc/13179] New: netname2host() uses uninitialized memory thomas.jarosch at intra2net dot com
@ 2011-09-29  8:08 ` aj at suse dot de
  2011-10-08  7:25 ` drepper.fsp at gmail dot com
  2014-06-27 12:07 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: aj at suse dot de @ 2011-09-29  8:08 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13179

Andreas Jaeger <aj at suse dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |aj at suse dot de

--- Comment #1 from Andreas Jaeger <aj at suse dot de> 2011-09-29 08:07:38 UTC ---
Thanks, patch send to libc-alpha mailing list.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/13179] netname2host() uses uninitialized memory
  2011-09-12 10:12 [Bug libc/13179] New: netname2host() uses uninitialized memory thomas.jarosch at intra2net dot com
  2011-09-29  8:08 ` [Bug libc/13179] " aj at suse dot de
@ 2011-10-08  7:25 ` drepper.fsp at gmail dot com
  2014-06-27 12:07 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-10-08  7:25 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13179

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-10-08 07:24:52 UTC ---
Changed in git.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug libc/13179] netname2host() uses uninitialized memory
  2011-09-12 10:12 [Bug libc/13179] New: netname2host() uses uninitialized memory thomas.jarosch at intra2net dot com
  2011-09-29  8:08 ` [Bug libc/13179] " aj at suse dot de
  2011-10-08  7:25 ` drepper.fsp at gmail dot com
@ 2014-06-27 12:07 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 12:07 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fweimer at redhat dot com
              Flags|                            |security-

--- Comment #3 from Florian Weimer <fweimer at redhat dot com> ---
The previous implementation was so broken that it was unusable, so no security
impact.

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


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

end of thread, other threads:[~2014-06-27 12:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-12 10:12 [Bug libc/13179] New: netname2host() uses uninitialized memory thomas.jarosch at intra2net dot com
2011-09-29  8:08 ` [Bug libc/13179] " aj at suse dot de
2011-10-08  7:25 ` drepper.fsp at gmail dot com
2014-06-27 12:07 ` 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).