Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Feb 2001 14:15:45 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Madhavi Suram <madhavis@sasken.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: warning in free(): 
Message-ID:  <2866.982847745@critter>
In-Reply-To: Your message of "Thu, 22 Feb 2001 18:38:32 %2B0530." <Pine.LNX.4.21.0102221827150.4014-100000@pcs111.sasi.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.LNX.4.21.0102221827150.4014-100000@pcs111.sasi.com>, Madhavi S
uram writes:
>
>Hi
>
>I am running a C program in user space on FreeBSD 3.3 release. I got a
>warning like this:
>
> 	testing in free(): warning: modified (chunk-) pointer.
>
>testing is the name of the executable I am running.
>
>Could anyone tell me what this warning means?  What may be the effect of
>this code when I shift it to kernel with due modifications? 

It means that you do something like this:

	...
	p = malloc(n);		 /* N <=2048 */
	p += m;
	free(p);

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2866.982847745>