public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/50268] [C++0x] bitset doesn't sanitize input Date: Thu, 01 Sep 2011 22:55:00 -0000 [thread overview] Message-ID: <bug-50268-4-Rb1csVcNr4@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-50268-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50268 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #25173|0 |1 is obsolete| | --- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-01 22:54:43 UTC --- Comment on attachment 25173 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25173 Draft patch S*it, patch is badly wrong: in general we really want to zero the unused bits of the highest word not of the __val. But the highest word either is all zeros anyway or has excess non zero bits beyond _Nb because written by __val, thus we have to restrict the zeroing of the highest bits of __val to this case.
next prev parent reply other threads:[~2011-09-01 22:55 UTC|newest] Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-09-01 19:20 [Bug libstdc++/50268] New: " marc.glisse at normalesup dot org 2011-09-01 19:23 ` [Bug libstdc++/50268] " paolo.carlini at oracle dot com 2011-09-01 19:29 ` paolo.carlini at oracle dot com 2011-09-01 19:41 ` paolo.carlini at oracle dot com 2011-09-01 22:17 ` paolo.carlini at oracle dot com 2011-09-01 22:55 ` paolo.carlini at oracle dot com [this message] 2011-09-02 1:35 ` paolo.carlini at oracle dot com 2011-09-02 8:03 ` marc.glisse at normalesup dot org 2011-09-02 9:38 ` paolo.carlini at oracle dot com 2011-09-02 9:41 ` paolo.carlini at oracle dot com 2011-09-02 10:29 ` paolo at gcc dot gnu.org 2011-09-02 10:37 ` paolo.carlini at oracle dot com 2011-09-02 10:42 ` paolo.carlini at oracle dot com 2011-09-02 11:00 ` marc.glisse at normalesup dot org 2011-09-02 12:08 ` paolo.carlini at oracle dot com 2011-09-02 12:24 ` marc.glisse at normalesup dot org 2011-09-02 12:34 ` paolo.carlini at oracle dot com 2011-09-02 13:17 ` paolo.carlini at oracle dot com 2011-09-02 13:26 ` marc.glisse at normalesup dot org 2011-09-02 13:40 ` paolo at gcc dot gnu.org 2011-09-02 13:41 ` paolo.carlini at oracle 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-50268-4-Rb1csVcNr4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /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).