First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 230849
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 218567
Assigned To: Maintainers for cvs, and cvs related tools (the version control system) <cvs-utils@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Attila Tóth <atoth@atoth.sote.hu>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
cvs-gnulib-vasnprintf.patch vasnprintf modifications just like in m4 patch Attila Tóth 2008-07-05 12:12 0000 1.07 KB Details | Diff
cvs-1.12.12-r6.ebuild Modified ebuild using the above patch text/plain Attila Tóth 2008-07-05 12:13 0000 2.41 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 230849 depends on: Show dependency tree
Bug 230849 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-07-05 12:09 0000
!!! The issue is valid only for toolchains compiling packages with
-D_FORTIFY_SOURCE=2. !!!

The problem is caused by the use of vasnprintf. It would use a user supplied
format string "%n". FORTIFY_SOURCE blocks the attempt causing a crash. The
vasnprintf was taken from gnulib. Upstream suggested a workaround which
alsready included in sys-devel/m4.
Other solutions:
- Mandriva prevents cvs from compiling with -D_FORTIFY_SOURCE=2
- FC8 and FC9 uses and older version of cvs (1.11.22)

References:
https://issues.rpath.com/browse/RPL-2015
https://qa.mandriva.com/show_bug.cgi?id=31848
http://www.cygwin.com/ml/libc-alpha/2006-02/msg00078.html
http://www.nabble.com/vasnprintf%27s-%22-n-in-writable-segment%22-chokes-with-_FORTIFY_SOURCE-%3D%3D-2-td13270892.html

Reproducible: Always

Steps to Reproduce:

------- Comment #1 From Attila Tóth 2008-07-05 12:12:20 0000 -------
Created an attachment (id=159607) [details]
vasnprintf modifications just like in m4

Based on the suggestions of gnulib developers. May cause loss of functionality.
Works for me.

------- Comment #2 From Attila Tóth 2008-07-05 12:13:31 0000 -------
Created an attachment (id=159609) [details]
Modified ebuild using the above patch

Needed until cvs will merge the gnulib changes from upstreams.

------- Comment #3 From Patrick Lauer 2009-02-01 18:05:06 0000 -------

*** This bug has been marked as a duplicate of bug 218567 ***

First Last Prev Next    No search results available      Search page      Enter new bug