public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug network/15277] New: inet_network("1 bar") gives wrong result
@ 2013-03-14 16:30 rep.dot.nop at gmail dot com
  2013-10-17 16:36 ` [Bug network/15277] " neleai at seznam dot cz
  2014-06-13 10:10 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: rep.dot.nop at gmail dot com @ 2013-03-14 16:30 UTC (permalink / raw)
  To: glibc-bugs

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

             Bug #: 15277
           Summary: inet_network("1 bar") gives wrong result
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: network
        AssignedTo: unassigned@sourceware.org
        ReportedBy: rep.dot.nop@gmail.com
    Classification: Unclassified


Testing: 1 bar
Test failed for inet_network ("1 bar"):
Expected return value 4294967295 (0xffffffff) but got 1 (0x1).

$ diff -u ../glibc/inet/tst-network.c test/inet/tst-network.c
--- ../glibc/inet/tst-network.c    2013-02-22 17:24:48.747768563 +0100
+++ test/inet/tst-network.c    2013-03-14 14:22:12.782165701 +0100
@@ -45,7 +42,38 @@
   {"1.1410.", INADDR_NONE},
   {"1.1410", INADDR_NONE},
   {"141.76.1111", INADDR_NONE},
-  {"141.76.1111.", INADDR_NONE}
+  {"141.76.1111.", INADDR_NONE},
+  {"1.1.1.257", INADDR_NONE},
+  /* Now some from BSD */
+  {"0x12", 0x00000012},
+  {"127.1", 0x00007f01},
+  {"127.1.2.3", 0x7f010203},
+  {"0x123456", INADDR_NONE},
+  {"0x12.0x34", 0x00001234},
+  {"0x12.0x345", INADDR_NONE},
+  {"1.2.3.4.5", INADDR_NONE},
+  {"1..3.4", INADDR_NONE},
+  {".", INADDR_NONE},
+  {"1.", INADDR_NONE},
+  {".1", INADDR_NONE},
+  {"x", INADDR_NONE},
+  {"0x", INADDR_NONE},
+  {"0", 0x00000000},
+  {"0x0", 0x00000000},
+  {"01.02.07.077", 0x0102073f},
+  {"0x1.23.045.0", 0x01172500},
+  {"", INADDR_NONE},
+  {" ", INADDR_NONE},
+  {"bar", INADDR_NONE},
+  {"1.2bar", INADDR_NONE},
+  {"1.", INADDR_NONE},
+  {"ÊÃÕËÅÎ", INADDR_NONE},
+  {"255.255.255.255", INADDR_NONE},
+  {"x", INADDR_NONE},
+  {"0X12", 0x00000012},
+  {"078", INADDR_NONE},
+  {"1 bar", INADDR_NONE},
+  {"127.0xfff", INADDR_NONE},
 };

-- 
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] 3+ messages in thread

* [Bug network/15277] inet_network("1 bar") gives wrong result
  2013-03-14 16:30 [Bug network/15277] New: inet_network("1 bar") gives wrong result rep.dot.nop at gmail dot com
@ 2013-10-17 16:36 ` neleai at seznam dot cz
  2014-06-13 10:10 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: neleai at seznam dot cz @ 2013-10-17 16:36 UTC (permalink / raw)
  To: glibc-bugs

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

Ondrej Bilka <neleai at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |neleai at seznam dot cz
         Resolution|---                         |FIXED

--- Comment #1 from Ondrej Bilka <neleai at seznam dot cz> ---
Fixed in 264aad1e6aca30efddfcfae05c44ad38bb5e137d.

-- 
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 network/15277] inet_network("1 bar") gives wrong result
  2013-03-14 16:30 [Bug network/15277] New: inet_network("1 bar") gives wrong result rep.dot.nop at gmail dot com
  2013-10-17 16:36 ` [Bug network/15277] " neleai at seznam dot cz
@ 2014-06-13 10:10 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 10:10 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
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:[~2014-06-13 10:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-14 16:30 [Bug network/15277] New: inet_network("1 bar") gives wrong result rep.dot.nop at gmail dot com
2013-10-17 16:36 ` [Bug network/15277] " neleai at seznam dot cz
2014-06-13 10:10 ` 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).