[Bug 305901]

2014-02-16 Thread Jackie-rosen
, which is subscribed to asterisk in Ubuntu. https://bugs.launchpad.net/bugs/305901 Title: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch To manage notifications about this bug go to: https://bugs.launchpad.net/glibc/+bug/305901/+subscriptions -- Ubuntu

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2011-05-26 Thread Bug Watch Updater
mp; ./foo not fail $ gcc -O2 -o foo foo.c && ./foo not fail $ gcc -O2 -D_FORTIFY_SOURCE=2 -o foo foo.c && ./foo fail The original report was filed in Ubuntu, where -D_FORTIFY_SOURCE=2 is enabled by default: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/305901 C99 states: The s

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2009-01-29 Thread Launchpad Bug Tracker
This bug was fixed in the package glibc - 2.8~20080505-0ubuntu8 --- glibc (2.8~20080505-0ubuntu8) intrepid-proposed; urgency=low * Add debian/patches/ubuntu/no-sprintf-pre-truncate.diff: do not pre-clear target buffers on sprintf to retain backward compatibility (LP: #305901

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2009-01-28 Thread Martin Pitt
** Tags added: verification-done ** Tags removed: verification-needed -- Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch https://bugs.launchpad.net/bugs/305901 You received this bug notification because you are a member of Ubuntu Server Team, which is subscr

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2009-01-28 Thread Anders Kaseorg
I can confirm that the intrepid-proposed libc6 fixes both my test program and the Intrepid barnowl package. -- Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch https://bugs.launchpad.net/bugs/305901 You received this bug notification because you are a member o

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2009-01-28 Thread Kees Cook
My intrepid machines with this glibc show the expected behavior and show no signs of regression. -- Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch https://bugs.launchpad.net/bugs/305901 You received this bug notification because you are a member of Ubuntu Se

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2009-01-28 Thread Martin Pitt
Anyone who has this glibc version installed and can tell us whether the original problems/crashes are now fixed, as well as if the system generally still works as before? -- Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch https://bugs.launchpad.net/bugs/30590

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2009-01-28 Thread Mathieu Marquer
Actually : * On the time I've seen this problem, it was still there after three reboots. But it has now disappeared... * If I try to revert to an earlier version of glibc, synaptic wants as well to remove 56 packets including some important ones... So I prefer not to try. So for the moment, this

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2009-01-27 Thread Kees Cook
Mathieu: does reverting to an earlier glibc solve the problem for you? -- Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch https://bugs.launchpad.net/bugs/305901 You received this bug notification because you are a member of Ubuntu Server Team, which is subscr

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2009-01-27 Thread Mathieu Marquer
Not sure whether this is related (please tell me if it's not), but that is the only significant update I've done since yesterday (with xine...) : With glibc 2.8~20080505-0ubuntu8 : * The system takes a lng time to scan the different WiFi networks available * A "sudo iwlist wlan0 scan" returns

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2009-01-09 Thread Martin Pitt
Accepted glibc into intrepid-proposed, please test and give feedback here. Please see https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance! ** Changed in: glibc (Ubuntu Intrepid) Status: In Progress => Fix Committed ** Tags

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2009-01-08 Thread Kees Cook
For intrepid-proposed: glibc (2.8~20080505-0ubuntu8) intrepid-proposed; urgency=low * Add debian/patches/ubuntu/no-sprintf-pre-truncate.diff: do not pre-clear target buffers on sprintf to retain backward compatibility (LP: #305901). ** Changed in: glibc (Ubuntu Intrepid) Status

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2009-01-05 Thread Launchpad Bug Tracker
This bug was fixed in the package glibc - 2.9-0ubuntu6 --- glibc (2.9-0ubuntu6) jaunty; urgency=low [ Matthias Klose ] * Merge with Debian, glibc-2.9 branch, r3200. [ Kees Cook ] * Add debian/patches/ubuntu/no-sprintf-pre-truncate.diff: do not pre-clear target buffers on

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-24 Thread Kees Cook
Marking the source packages as Invalid, since they will be handled upstream. The glibc patch restores the original behavior, so it will get SRU'd into Intrepid and fixed in Jaunty. ** Changed in: 4g8 (Ubuntu Intrepid) Status: New => Invalid ** Changed in: abiword (Ubuntu Intrepid)

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-23 Thread Kees Cook
(er, 252 total -- I added "linux" back in at the last moment) I'm also testing a patch to glibc to avoid the change in behavior when using _FORTIFY_SOURCE. ** Attachment added: "no-sprintf-pre-truncate.diff" http://launchpadlibrarian.net/20703741/no-sprintf-pre-truncate.diff -- Intrepid gcc

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-23 Thread Kees Cook
http://people.ubuntu.com/~kees/sprintf-glibc/ 29 main 15 multiverse 208 universe 251 total I removed a few copies of the kernel, which all show the same report, as well as gnokii, which had a note in the Changelog about how they'd fixed it already. -- Intrepid gcc -O2 breaks s

Re: [Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-23 Thread Matthias Klose
Kees Cook schrieb: > On Tue, Dec 23, 2008 at 06:14:32AM -, Anders Kaseorg wrote: >> Matthias, shall I go ahead and use massfile to create 231 bugs for this >> issue? > > It probably makes more sense to approach Debian with the mass-filing. I'd > be happy to help drive this. seems to be the r

Re: [Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-22 Thread Kees Cook
On Tue, Dec 23, 2008 at 06:14:32AM -, Anders Kaseorg wrote: > • There are no instances of snprintf in your results. I haven't yet re-run the search with snprintf. > • Does your search include DBS style tarball-inside-a-tarball packages? It does not yet, but I've put together a script that wi

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-22 Thread Anders Kaseorg
Oops, and I would use the right bug URL, of course. ** Attachment added: "instructions file for proposed massfile, v2" http://launchpadlibrarian.net/20680112/instructions ** Attachment removed: "instructions file for proposed massfile" http://launchpadlibrarian.net/20680039/instructions -

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-22 Thread Anders Kaseorg
Kees, some quick questions about your search: • There are no instances of snprintf in your results. I could believe that there aren’t any, because this use of snprintf has been broken for longer than this use of sprintf, but I just wanted to confirm this. • Does your search include DBS style tar

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Kees Cook
** Attachment added: "multiverse.log" http://launchpadlibrarian.net/20288264/multiverse.log ** Attachment removed: "report of search in main" http://launchpadlibrarian.net/20285489/main.log ** Attachment removed: "report of search in universe" http://launchpadlibrarian.net/20285495/un

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Kees Cook
** Attachment added: "universe.log" http://launchpadlibrarian.net/20288259/universe.log -- Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch https://bugs.launchpad.net/bugs/305901 You received this bug notification because you are a member of Ubuntu Server

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Kees Cook
yeah, my search was glitched. New logs attached only count difference was universe, which went to 187. ** Attachment added: "main.log" http://launchpadlibrarian.net/20288238/main.log -- Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch https://bugs.launchp

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Anders Kaseorg
For snprintf, use pcregrep -M 'snprintf\s*\(\s*([^,]*)\s*,[^,]*,\s*"%s[^"]*"\s*,\s*\1\s*,' "$@" -- Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch https://bugs.launchpad.net/bugs/305901 You received this bug notification because you are a member of Ubuntu Se

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Anders Kaseorg
>> pcregrep -M 'sprintf\s*\(\s*([^,]*)\s*,\s*"%s[^"]*"\s*,\s*\1\s*,' > > the regexp doesn't search for snprintf, and doesn't look for functions > spanning more than one line. It does with pcregrep -M. For example, $ pcregrep -M 'sprintf\s*\(\s*([^,]*)\s*,\s*"%s[^"]*"\s*,\s*\1\s*,' \ linux-2.6

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Matthias Klose
> You can search a source file for instances of it with this regex: > pcregrep -M 'sprintf\s*\(\s*([^,]*)\s*,\s*"%s[^"]*"\s*,\s*\1\s*,' the regexp doesn't search for snprintf, and doesn't look for functions spanning more than one line. > I’ll stop filing bugs for now and see what happens with th

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Kees Cook
** Attachment added: "report of search in multiverse" http://launchpadlibrarian.net/20285502/multiverse.log -- Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch https://bugs.launchpad.net/bugs/305901 You received this bug notification because you are a memb

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Kees Cook
** Attachment added: "report of search in universe" http://launchpadlibrarian.net/20285495/universe.log -- Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch https://bugs.launchpad.net/bugs/305901 You received this bug notification because you are a member o

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Kees Cook
Searching all of Ubuntu source in Jaunty: 29 main 0 restricted 182 universe 15 multiverse ** Attachment added: "report of search in main" http://launchpadlibrarian.net/20285489/main.log -- Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch https://bugs.lau

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Bug Watch Updater
** Changed in: glibc Status: Unknown => Invalid -- Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch https://bugs.launchpad.net/bugs/305901 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nagios-p

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Kees Cook
** Bug watch added: Sourceware.org Bugzilla #7075 http://sourceware.org/bugzilla/show_bug.cgi?id=7075 ** Also affects: glibc via http://sourceware.org/bugzilla/show_bug.cgi?id=7075 Importance: Unknown Status: Unknown ** Changed in: glibc (Ubuntu) Importance: Undecided => High

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Kees Cook
Given the large number of affected packages, perhaps it is better to fix the compiler option. I'm curious to see what upstream thinks of this. ** Also affects: glibc (Ubuntu) Importance: Undecided Status: New -- Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify s

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Anders Kaseorg
I’m about 8% of the way through my list, and it looks like there might indeed be a _lot_ of affected Ubuntu packages. I’ll stop filing bugs for now and see what happens with these ones. ** Also affects: billard-gl (Ubuntu) Importance: Undecided Status: New ** Also affects: binutils (Ub

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Anders Kaseorg
** Also affects: ctn (Ubuntu) Importance: Undecided Status: New ** Also affects: hypermail (Ubuntu) Importance: Undecided Status: New ** Also affects: asterisk (Ubuntu) Importance: Undecided Status: New ** Also affects: atomicparsley (Ubuntu) Importance: Undecide

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Anders Kaseorg
** Also affects: 4g8 (Ubuntu) Importance: Undecided Status: New ** Description changed: Binary package hint: gcc-4.3 In Hardy and previous releases, one could use statements such as sprintf(buf, "%s %s%d", buf, foo, bar); to append formatted text to a buffer buf. Intrepid’

[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

2008-12-07 Thread Anders Kaseorg
** Also affects: owl (Ubuntu) Importance: Undecided Status: New ** Also affects: barnowl (Ubuntu) Importance: Undecided Status: New ** Also affects: nagios-plugins (Ubuntu) Importance: Undecided Status: New ** Also affects: xmcd (Ubuntu) Importance: Undecided