This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6919] posix_spawnattr_getschedparam overwrites unrelated memory
- From: "bruno at clisp dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 27 Sep 2008 18:40:09 -0000
- Subject: [Bug libc/6919] posix_spawnattr_getschedparam overwrites unrelated memory
- References: <20080927183249.6919.bruno@clisp.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From bruno at clisp dot org 2008-09-27 18:40 -------
Created an attachment (id=2965)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2965&action=view)
a fix
Attached is a fix. Like in the file spawnattr_setschedparam.c, a simple
assignment is sufficient - no need for memcpy at all.
Btw, you can also remove the include <string.h> from spawnattr_setschedparam.c.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6919
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.