public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug malloc/15857] New: posix_memalign / memalign integer overflow can corrupt allocator state
@ 2013-08-20  8:03 will.newton at gmail dot com
  2013-08-20  9:16 ` [Bug malloc/15857] " fweimer at redhat dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: will.newton at gmail dot com @ 2013-08-20  8:03 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 15857
           Summary: posix_memalign / memalign integer overflow can corrupt
                    allocator state
           Product: glibc
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: malloc
          Assignee: unassigned at sourceware dot org
          Reporter: will.newton at gmail dot com

The following test case crashes when it should return ENOMEM:

#include <stdlib.h>
#include <malloc.h>
#include <unistd.h>

int main(void)
{
  void *memptr;
  unsigned long pagesize = getpagesize();

  posix_memalign(&memptr, pagesize, -pagesize);

  return 0;
}

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


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

end of thread, other threads:[~2015-02-24 10:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-20  8:03 [Bug malloc/15857] New: posix_memalign / memalign integer overflow can corrupt allocator state will.newton at gmail dot com
2013-08-20  9:16 ` [Bug malloc/15857] " fweimer at redhat dot com
2013-09-11  9:50 ` will.newton at gmail dot com
2013-10-25 14:00 ` cvs-commit at gcc dot gnu.org
2013-11-01 19:01 ` cvs-commit at gcc dot gnu.org
2013-11-21 17:14 ` cvs-commit at gcc dot gnu.org
2014-01-06 16:55 ` cvs-commit at gcc dot gnu.org
2014-01-06 16:56 ` cvs-commit at gcc dot gnu.org
2014-06-13  9:44 ` fweimer at redhat dot com
2015-01-16 16:59 ` cvs-commit at gcc dot gnu.org
2015-01-29 18:48 ` cvs-commit at gcc dot gnu.org
2015-02-23 15:02 ` cvs-commit at gcc dot gnu.org
2015-02-24 10:54 ` [Bug malloc/15857] posix_memalign / memalign integer overflow can corrupt allocator state (CVE-2013-4332) 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).