Menu

#54 Possible bug in file ssg / ssgLoadPCX.cxx line 99

open
nobody
None
5
2019-02-19
2019-02-19
No

While experimenting with a novel static analysis technique in CodeSonar, we noticed the following potential problem at the next location:

FilePath: ssg / ssgLoadPCX.cxx
Function: ssgLoadPCX
Line number: 99

buffer points to the memory locattion allocated to record the content of some file. However, it is changed in line 77. Thus the "deallocation" starts at a wrong address.

Very similar in line 146 (where probably alfaBuffer should have been used).

Thanks,
Petru-Florin Mihancea

Discussion


Log in to post a comment.