public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug network/13785] New: Add regression test for res_nquerydomain.
@ 2012-02-29 20:46 carlos at systemhalted dot org
  2012-02-29 21:47 ` [Bug network/13785] " carlos at systemhalted dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: carlos at systemhalted dot org @ 2012-02-29 20:46 UTC (permalink / raw)
  To: glibc-bugs

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

             Bug #: 13785
           Summary: Add regression test for res_nquerydomain.
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: network
        AssignedTo: unassigned@sourceware.org
        ReportedBy: carlos@systemhalted.org
    Classification: Unclassified
              Host: i686-pc-linux-gnu
            Target: i686-pc-linux-gnu
             Build: i686-pc-linux-gnu


Add a regression test for commit:
~~~
commit 8fdceb2efda8cf724cfc4444af86b5f135ad3172
Author: Jeff Law <law@redhat.com>
Date:   Wed Feb 29 11:51:27 2012 -0500

    [network] Avoid out ouf bounds read in __libc_res_nquerydomain

    2012-02-28  Jeff Law  <law@redhat.com>

        * resolv/res_query.c (__libc_res_nquerydomain): Avoid
        out of bounds read.

~~~

Start with something like this:
~~~
#include <stdlib.h>
#include <resolv.h>
main()
{
 char buf[20];
 res_state statp = malloc (sizeof (res_state));
 memset (statp, 0, sizeof (statp));
 res_nquerydomain (statp, "", NULL, 0, 0, buf, 20);
}
~~~

Notes:
* mmap a page, touch first bit.
* try to get code to touch space outside of that first page.

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

end of thread, other threads:[~2014-06-26 14:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-29 20:46 [Bug network/13785] New: Add regression test for res_nquerydomain carlos at systemhalted dot org
2012-02-29 21:47 ` [Bug network/13785] " carlos at systemhalted dot org
2013-10-08 16:14 ` neleai at seznam dot cz
2014-06-26 14:17 ` 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).