MantisBT - Community
View Issue Details
0023335Community[OCCT] OCCT:Data Exchangepublic2012-07-20 16:142012-11-16 13:17
Pawel 
Pawel 
normalminor 
closedfixed 
ALL
[OCCT] 6.5.3 
[OCCT] 6.5.4[OCCT] 6.5.4 
Not needed
0023335: Array overrun is possible. The value of 'i' index could reach 200 in Interface_MSG.cxx
In the method Interface_MSG::Read (Standard_IStream& S) there is a buffer of size '200'. The 'for-loop' in line 145 iterates over the buffer from 1 to 200 (inclusive) - this would be the 201st element of the buffer.

I suggest to iterate from 1 to 199.
No tags attached.
Issue History
2012-07-20 16:14PawelNew Issue
2012-07-20 16:14PawelAssigned To => Pawel
2012-07-20 16:18PawelNote Added: 0021089
2012-07-20 16:18PawelAssigned ToPawel => bugmaster
2012-07-20 16:18PawelStatusnew => resolved
2012-07-23 13:54abvNote Added: 0021109
2012-07-23 13:54abvStatusresolved => reviewed
2012-07-24 16:20apnNote Added: 0021139
2012-07-24 16:21apnTest case number => Not needed
2012-07-24 16:21apnStatusreviewed => tested
2012-07-30 16:31PawelChangeset attached => occt master db3d2a99
2012-07-30 16:32PawelAssigned Tobugmaster => Pawel
2012-07-30 16:32PawelStatustested => verified
2012-07-30 16:32PawelResolutionopen => fixed
2012-11-16 13:14bugmasterFixed in Version => 6.5.4
2012-11-16 13:17bugmasterStatusverified => closed

Notes
(0021089)
Pawel   
2012-07-20 16:18   
Corresponding git branch pushed. Please review.
(0021109)
abv   
2012-07-23 13:54   
No remarks, please test
(0021139)
apn   
2012-07-24 16:20   
Dear BugMaster,
The workbenches
KAS:dev:apn-23335-occt (GIT branch CR23335)
KAS:dev:apn-23335-products (GIT master)
were compiled on Linux platform and tested.

Regression:
Not detected

Improvements:
Not detected

Testing case:
Not needed

See results in /QADisk/occttests/results/KAS/dev/apn-23335-products_24072012/lin
See reference results in /QADisk/occttests/results/KAS/dev/products-20120706-opt_06072012/lin
See test cases in /QADisk/occttests/tests/ED