bugGNU Wget - Bugs: bug #39453, Integer error/sign comparison bug...

 
 

bug #39453: Integer error/sign comparison bug causes wrapping error

Submitted by:  Will Dietz <dtzwill>
Submitted on:  Tue 09 Jul 2013 09:33:38 PM UTC  
 
Category:  Program Logic Severity:  3 - Normal
Priority:  5 - Normal Status:  Fixed
Privacy:  Public Assigned to:  Giuseppe Scrivano <gscrivano>
Originator Name:  Open/Closed:  Closed
Release:  trunk Operating System:  None
Reproducibility:  Every Time Fixed Release:  None
Planned Release:  1.15 Regression:  None
Work Required:  None Patch Included:  Yes

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 11 Aug 2013 02:05:16 AM UTC, comment #1:

This issue was fixed in http://git.savannah.gnu.org/cgit/wget.git/commit/?id=a12bd59111bd5e6fba91a8f1fa6c09698d03f740 and may now be closed.

Thanks!

Will Dietz <dtzwill>
Tue 09 Jul 2013 09:33:38 PM UTC, original submission:

Normal wrapping, with no token > line length, snippet from wget --version:

Link: gcc -DUNIMPORTANT_TEXT=123456789 -O2 -g -lgnutls -lgcrypt -lgpg-error
-lz -lz -lidn -luuid -lpcre ftp-opie.o gnutls.o ../lib/libgnu.a

However, if a token is longer than line length is present, an integer error causes wrapping to be disabled for subsequent tokens:

Link: gcc
-DUNIMPORTANT_TEXT_TO_CREATE_VERY_LONG_TOKEN_IN_FLAG_STRING=123456789 -O2 -g -lgnutls -lgcrypt -lgpg-error -lz -lz -lidn -luuid -lpcre ftp-opie.o gnutls.o ../lib/libgnu.a

The error occurs in src/main.c with both 1.14 and trunk, patch included.

Will Dietz <dtzwill>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #28524:  0001-Fix-integer-error-in-format_and_print_line.patch added by dtzwill (1KiB - text/x-patch - Suggested patch.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gscrivano (Updated the item)
  • -email is unavailable- added by dtzwill (Submitted the item)
  •  

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-11-02 gscrivano StatusNone => Fixed
        Assigned toNone => gscrivano
        Open/ClosedOpen => Closed
        Planned ReleaseNone => 1.15
    2013-07-09 dtzwill Attached File- => Added 0001-Fix-integer-error-in-format_and_print_line.patch, #28524

    Back to the top


    Powered by Savane 3.3