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

 
 

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

Submitted by:  None
Submitted on:  Wed 10 Dec 2014 07:18:55 PM UTC  
 
Severity: 3 - NormalStatus: None
Assigned to: NoneOpen/Closed: Open
Release: 0.9.4 (Beta 4)Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup1