public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bugdal at aerifal dot cx" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sources.redhat.com Subject: [Bug libc/14459] strtod integer and buffer overflows Date: Mon, 13 Aug 2012 19:12:00 -0000 [thread overview] Message-ID: <bug-14459-131-7ZIBmLC2pT@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-14459-131@http.sourceware.org/bugzilla/> http://sourceware.org/bugzilla/show_bug.cgi?id=14459 Rich Felker <bugdal at aerifal dot cx> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugdal at aerifal dot cx --- Comment #1 from Rich Felker <bugdal at aerifal dot cx> 2012-08-13 19:11:52 UTC --- In general, test cases for giant-string bugs like this can be written so as not to require a machine with insane amounts of free memory by using mmap cleverly: 1. Make a giant PROT_NONE anonymous mapping of the entire size. 2. Allocate a shared memory object of some reasonable size, e.g. 256k and fill it with the pattern you want (e.g. all '0'). 3. Repeatedly map the object over the original mapping at each offset with MAP_FIXED|MAP_SHARED. 4. Make new anonymous mappings over top of the parts you want to modify (usually the head and tail) using MAP_FIXED and fill them with the necessary data. This kind of design can take a test case that would otherwise bog most systems down swapping for several minutes and make it run in a matter of seconds. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
next prev parent reply other threads:[~2012-08-13 19:12 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-08-12 18:23 [Bug libc/14459] New: " jsm28 at gcc dot gnu.org 2012-08-13 17:35 ` [Bug libc/14459] " vapier at gentoo dot org 2012-08-13 19:12 ` bugdal at aerifal dot cx [this message] 2012-08-13 19:23 ` ppluzhnikov at google dot com 2012-08-15 22:08 ` allan at archlinux dot org 2012-08-27 16:12 ` jsm28 at gcc dot gnu.org 2012-08-27 23:03 ` jsm28 at gcc dot gnu.org 2014-06-17 18:45 ` [Bug libc/14459] strtod integer and buffer overflows (CVE-2012-3480) fweimer at redhat 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=bug-14459-131-7ZIBmLC2pT@http.sourceware.org/bugzilla/ \ --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).