bugLordsAWar! - Bugs: bug #29666, size_t used as int -> possible...

 
 

bug #29666: size_t used as int -> possible crash on 64 bit systems

Submitted by:  Hannu Kotipalo <nite69>
Submitted on:  Sun 25 Apr 2010 08:59:52 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 25 Apr 2010 09:13:00 AM UTC, comment #1:

Hi Hannu,
I usually ignore bug reports like this because nobody has actually encountered a bug. However if you'd like to submit a patch and fix this kind of problem throughout the codebase, be my guest. It's a good task for someone new to the codebase. I'd be happy to review that patch.

Ben Asselstine <benasselstine>
Project Administrator
Sun 25 Apr 2010 08:59:52 AM UTC, original submission:

Have not yet searched all the source, there might be more this kind of problems. For example player.cpp line 4048:

printf("sunk.size() is %d\n", sunk.size());

might cause problems on 64 bit system.
See
http://www.keyongtech.com/4828159-printf-formats-for-size_t

Hannu Kotipalo <nite69>

 

(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 benasselstine (Posted a comment)
  • -unavailable- added by nite69 (Submitted the item)
  •  

    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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 25 Apr 2010 09:13:00 AM UTCbenasselstineOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1