This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/15856] New: valloc integer overflow can corrupt allocator state
- From: "will.newton at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 20 Aug 2013 08:01:33 +0000
- Subject: [Bug malloc/15856] New: valloc integer overflow can corrupt allocator state
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=15856
Bug ID: 15856
Summary: valloc 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 NULL:
#include <stdlib.h>
#include <malloc.h>
#include <unistd.h>
int main(void)
{
unsigned long pagesize = getpagesize();
valloc (-pagesize);
return 0;
}
--
You are receiving this mail because:
You are on the CC list for the bug.