buglibiconv - Bugs: bug #32969, gentranslit: glibc 2.11.1 reports...

 
 

bug #32969: gentranslit: glibc 2.11.1 reports a buffer overrun and aborts when FORTIFY_SOURCE is enabled.

Submitted by:  None
Submitted on:  Thu 31 Mar 2011 09:55:51 PM UTC  
 
Category: BuildSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 31 Mar 2011 10:31:37 PM UTC, comment #3:

Close enough to my second attempt. Thanks for the quick reply, Bruno.

Ben Noordhuis <bnoordhuis>
Thu 31 Mar 2011 10:26:40 PM UTC, comment #2:

Thanks a lot for the report. I prefer a slightly different
patch. (The use of snprintf may produce C code that contains
two arrays with the same name.)

Fixed here:
http://git.savannah.gnu.org/gitweb/?p=libiconv.git;a=commitdiff;h=347ec1264f43d87c53fb4eb22cf381673c11d533

Bruno Haible <haible>
Project AdministratorIn charge of this item.
Thu 31 Mar 2011 10:24:49 PM UTC, comment #1:

I take the erroneous part back, `gentranslit` was indeed writing past the end of the buffer. I've amended the patch.

Ben Noordhuis <bnoordhuis>
Thu 31 Mar 2011 09:55:51 PM UTC, original submission:

Tested against the current master (5124ded) on Ubuntu 10.04.2 (x86_64).

I've written a patchlet that resolves (well, side-steps) the issue. Color diff and patch:

https://github.com/bnoordhuis/libiconv/compare/gentranslit
https://github.com/bnoordhuis/libiconv/compare/gentranslit.patch

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by haible (Posted a comment)
  • -unavailable- added by bnoordhuis (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 23 Nov 2016 11:58:46 PM UTChaibleCategoryNone=>Build
    Thu 31 Mar 2011 10:45:37 PM UTChaibleSummarygentranslit: glibc 2.11.1 erroneously reports a buffer overrun and aborts when FORTIFY_SOURCE is enabled.=>gentranslit: glibc 2.11.1 reports a buffer overrun and aborts when FORTIFY_SOURCE is enabled.
    Thu 31 Mar 2011 10:26:40 PM UTChaibleStatusNone=>Fixed
      Assigned toNone=>haible
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1