This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug linuxthreads/4338] pthread_create / pthread_exit -- use of partially uninitialized buffer
- From: "mv at binarysec dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 10 Apr 2007 16:52:31 -0000
- Subject: [Bug linuxthreads/4338] pthread_create / pthread_exit -- use of partially uninitialized buffer
- References: <20070410164327.4338.poletto@jeuxvideo.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mv at binarysec dot com 2007-04-10 17:52 -------
Subject: Re: New: pthread_create / pthread_exit -- use of partially uninitialized buffer
Hello,
You attempt to "nullize" a null pointer (param) in thread_func().
What's happen if you remove param = NULL ?
> static void * thread_func (void * param)
> {
> param = NULL;
>
> printf ("Thread created\n");
> usleep(200000);
> printf ("Thread working\n");
> usleep(1200000);
> printf ("Thread ended\n");
> pthread_exit(NULL);
> }
Regards,
Michael Vergoz
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4338
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.