This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11522] New: Uninitialised Variable in qsort_r
- From: "lfsxs0 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 20 Apr 2010 03:33:23 -0000
- Subject: [Bug libc/11522] New: Uninitialised Variable in qsort_r
- Reply-to: sourceware-bugzilla at sourceware dot org
In short, the following extract from stdlib/msort.c, lines 182-185, shows the
variable phys_pages is used before initialization in a zero comparison. Is this
legal?
static long int phys_pages;
static int pagesize;
if (phys_pages == 0)
Furthermore, I have a question about qsort opening the /proc/meminfo file to get
the total available memory: I run ACM-ICPC-like contests and use a ptrace-based
sandbox software I wrote exactly for this. It keeps reporting a contestant is
opening a file when he/she is actually just qsort'ing some array. Is there a way
to prevent this behaviour?
Thank you.
--
Summary: Uninitialised Variable in qsort_r
Product: glibc
Version: 2.10
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: lfsxs0 at gmail dot com
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: x86_64-pc-linux-gnu
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=11522
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.