NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/47154
The following reply was made to PR bin/47154; it has been noted by GNATS.
From: Miwa Susumu <miwarin%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: bin/47154
Date: Sat, 1 Nov 2014 00:06:12 +0900
Is this malloc() bug?
In my machine( NetBSD 6.1.5 i386 ), dd is segmentation fault.
% dd if=/dev/zero of=hoge bs=4095m progress=1
zsh: segmentation fault dd if=/dev/zero of=hoge bs=4095m progress=1
What is happening here.
dd.c setup()
if (!(ddflags & (C_BLOCK|C_UNBLOCK))) {
if ((in.db = malloc(out.dbsz + in.dbsz - 1)) == NULL) { <====
err(EXIT_FAILURE, NULL);
/* NOTREACHED */
}
out.db = in.db;
note that, in.dbsz and out.dbsz is 4293918720.
Do you need to limit size of malloc() ?
--
miwarin
Home |
Main Index |
Thread Index |
Old Index