public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "sources dot redhat dot com at contacts dot eelis dot net" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sources.redhat.com Subject: [Bug libc/12005] New: malloc(-1ul) segfaults when using mcheck Date: Sat, 11 Sep 2010 16:02:00 -0000 [thread overview] Message-ID: <20100911160236.12005.sources.redhat.com@contacts.eelis.net> (raw) The malloc call in the following testcase segfaults both on my x86-64 machine with glibc 2.11.2 and on a x86-32 machine with glibc 2.9: #include <stdlib.h> #include <mcheck.h> int main () { mcheck(0); malloc(-1ul); return 0; } Obviously, malloc should return 0 instead of segfaulting. :) -- Summary: malloc(-1ul) segfaults when using mcheck Product: glibc Version: 2.11 Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: drepper at redhat dot com ReportedBy: sources dot redhat dot com at contacts dot eelis dot net CC: glibc-bugs at sources dot redhat dot com GCC host triplet: x86_64-suse-linux http://sourceware.org/bugzilla/show_bug.cgi?id=12005 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
next reply other threads:[~2010-09-11 16:02 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-09-11 16:02 sources dot redhat dot com at contacts dot eelis dot net [this message] 2010-09-11 16:21 ` [Bug libc/12005] " andrey dot vihrov at gmail dot com 2010-09-11 16:46 ` andrey dot vihrov at gmail dot com 2010-10-04 2:27 ` drepper dot fsp at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100911160236.12005.sources.redhat.com@contacts.eelis.net \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sources.redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).