bugGlobulation 2 - Bugs: bug #43796, Buffer over-run in Settings.cpp:202

 
 

bug #43796: Buffer over-run in Settings.cpp:202

Submitter:  None
Submitted:  Wed 10 Dec 2014 07:18:55 PM UTC
   
 
Severity:  3 - Normal Status:  None
Assigned to:  None Open/Closed:  Open
Release:  0.9.4 (Beta 4) Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 20 Mar 2019 07:58:34 AM UTC, comment #1: 

I see the same after 4+ years. Is it fixed at least in Hg?
I'd also rose the Severity.

Ildar <ildar>
Wed 10 Dec 2014 07:18:55 PM UTC, original submission:  

for(int n=0; n<IntBuildingType::NB_BUILDING; ++n)
n is used to index defaultFlagRadius[n] which is of size 3 while NB_BUILDING is 13
It used to work well on my old PC and new one reveals this issue by flooding preferences.txt with
defaultFlagRadius[0]=10
defaultFlagRadius[1]=4
defaultFlagRadius[2]=3
defaultFlagRadius[3]=16
defaultFlagRadius[4]=120
defaultFlagRadius[5]=3
defaultFlagRadius[6]=3550
defaultFlagRadius[7]=1300
defaultFlagRadius[8]=300
defaultFlagRadius[9]=150
defaultFlagRadius[10]=1
defaultFlagRadius[11]=1
defaultFlagRadius[12]=1277177120
defaultFlagRadius[13]=6525840
defaultFlagRadius[14]=0
defaultFlagRadius[15]=10497472
defaultFlagRadius[16]=0
defaultFlagRadius[17]=10497880
... etc
until program is crashed

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ildar (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code