Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 24 Aug 2012 13:01:53 +0200
From: Szabolcs Nagy <>
Subject: Re: build musl with clang

* agent <> [2012-08-24 16:37:32 +0600]:
> i have built clang from trunk and tried the calloc test. when test
> program is linked dynamically to it fails it. if it linked
> statically -- it passes ok.

so the bug is still present

try to make a minimal testcase


void *f()
	char *p;

	p = malloc(100);
	if (p && p[0])
		p[0] = 0;
	return p;

and compile with -O3 -ffreestanding -S

if the check is eliminated then it's a bug

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.