Home » MODDING HQ 1.13 » v1.13 Bug Reports » So I ran a code analysis in Visual Studio 2013
So I ran a code analysis in Visual Studio 2013[message #331306] Sun, 16 March 2014 02:38 Go to next message
JosephCKohn is currently offline JosephCKohn

 
Messages:40
Registered:February 2014
Is any of the following legit? This is from the source code of executable 7069.

Quote:
C6295 Infinite loop Ill-defined for-loop: 'unsigned char' values are always of range '0' to '255'. Loop executes infinitely. Laptop mercs.cpp 3079



Quote:
C6289 Mutual exclusion over logical-OR is true Incorrect operator: mutual exclusion over || is always a non-zero constant. Did you intend to use && instead? Strategic luainitnpcs.cpp 11932



Quote:
C6255 Unprotected use of alloca _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead. SGP sgp.cpp 1862



Quote:
C6385 Read overrun Reading invalid data from 's->bl_count': the readable size is '32' bytes, but 'bits' bytes may be read. zlib trees.c 552
Enter this loop, (assume 'h<((2*((256+1+29))+1))') 512
Enter this branch, (assume 'bits>max_length') 515
Skip this branch, (assume 'n>max_code' is false) 519
Skip this branch, (assume 'n>=base' is false) 523
Skip this branch, (assume 'stree' is false) 526
Exit this loop, ('h<((2*((256+1+29))+1))' is false) 512
Skip this branch, (assume 'overflow==0' is false) 528
Skip this loop, (assume 'overflow>0' is false) 544
'bits' may be NULL (Enter this loop) 551
Invalid read from 's->bl_count[-1]', (readable range is 0 to 15) 552



Quote:
C6385 Read overrun Reading invalid data from 's->bl_count': the readable size is '32' bytes, but '-2' bytes may be read. zlib trees.c 536
Enter this loop, (assume 'h<((2*((256+1+29))+1))') 512
Enter this branch, (assume 'bits>max_length') 515
(alias) 'bits' receives the value of 'max_length' 515
Skip this branch, (assume 'n>max_code' is false) 519
Skip this branch, (assume 'n>=base' is false) 523
Skip this branch, (assume 'stree' is false) 526
Exit this loop, ('h<((2*((256+1+29))+1))' is false) 512
Skip this branch, (assume 'overflow==0' is false) 528
Enter this loop, (assume 's->bl_count[bits]==0') 536
Invalid read from 's->bl_count[-1]', (readable range is 0 to 15) 536


Report message to a moderator

Corporal
Re: So I ran a code analysis in Visual Studio 2013[message #331309] Sun, 16 March 2014 03:04 Go to previous message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
Well, no way to tell without knowing the code sections this refers to.

Assuming I'll get this to work on VS2010 and find the time, I'll take a look.

Report message to a moderator

Captain

Previous Topic: Razor has 100 Marksmanship!? (Day 49)
Next Topic: Flugente rant #5: useless crap that does nothing
Goto Forum:
  


Current Time: Mon Dec 02 16:34:06 GMT+2 2024

Total time taken to generate the page: 0.02397 seconds