Subject: lib/12810: malloc core-dumps on silly big numbers
To: None <>
From: None <>
List: netbsd-bugs
Date: 05/02/2001 23:54:04
>Number:         12810
>Category:       lib
>Synopsis:       malloc core-dumps on silly big numbers
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 02 15:54:00 PDT 2001
>Release:        30-Apr-01
System: NetBSD 1.5U NetBSD 1.5U (PINKY) #4: Tue Apr 17 10:23:08 BST 2001 i386
Architecture: i386
Machine: i386
malloc coredumps if you try to allocate 4095 MB.  This is what memtester does if you use the all option.  Occurs on i386 and arm32.
(memtester can be found:
The following test program core dumps (unless both my boxes have dodgey memory):
#include <stdio.h>
#include <stdlib.h>
    void * ptr = malloc(4293918720U);