bugGNU Wget - Bugs: bug #28374, Output %p as unsigned in the...

 
 

bug #28374: Output %p as unsigned in the fallback snprintf.

Submitted by:  Peter Rosin <pekberg>
Submitted on:  Tue 22 Dec 2009 10:18:04 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: Giuseppe Scrivano <gscrivano>
Originator Name: Peter RosinOpen/Closed: Closed
Release: NoneOperating System: None
Reproducibility: NoneFixed Release: None
Planned Release: 1.12.xRegression: No
Work Required: NonePatch Included: Yes

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 27 May 2010 11:55:47 AM UTC, comment #1:

Thanks for your patch.

Anyway I prefer to remove snprintf.c at all and use the gnulib module.

Giuseppe Scrivano <gscrivano>
Project AdministratorIn charge of this item.
Tue 22 Dec 2009 10:18:04 AM UTC, original submission:

Hi!

I originally reported this on the bug-wget list a few weeks back, but nothing happened. I'm now opening a bug so that this isn't lost. Sorry if I'm just being impatient...

The included snprintf function outputs pointers as signed numbers leading to bad things<tm>. It seems that you don't wish to use %p, but it also seems that you do in fact use it. So, this can't be a bad patch, right? Also think about the poor sods borrowing your snprintf implementation. Errmh, that would be me, I'm just contributing back...

Cheers,
Peter

2009-12-03 Peter Rosin <peda@lysator.liu.se>

* snprintf.c (dopr): Output %p as unsigned.

Peter Rosin <pekberg>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #19337:  output-ptr-as-unsigned.patch added by pekberg (1KiB - text/plain - Output %p as unsigned.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gscrivano (Posted a comment)
  • -unavailable- added by pekberg (Submitted the item)
  •  

    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
    Thu 27 May 2010 11:55:47 AM UTCgscrivanoStatusNone=>Fixed
      Assigned toNone=>gscrivano
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>1.12.x
    Tue 22 Dec 2009 10:18:04 AM UTCpekbergAttached File-=>Added output-ptr-as-unsigned.patch, #19337

    Back to the top


    Powered by Savane 3.1-cleanup1