Decoda BUG - _SCL_SECURE_VALIDATE_RANGE

screwscrew Join Date: 2013-07-09 Member: 186010Members Posts: 2
Reproduce:
1) run debug build from IDE
2) open deproj file with 2 LUA files inside
3) start debug LUA
4) and then close Decoda.

File: MainFrame.cpp @ 1790
Function RemovePageFromTabOrder

Details:
Into the "assert", when adding "1" to the iterator. _SCL_SECURE_VALIDATE_RANGE check occurs here, because 'copyFrom' has value '0xfdfdfdfd'

Fix:
Function source is too glibly. I replaced all function code with two lines only:

assert(pageIndex < m_tabOrder.size());
m_tabOrder.erase(m_tabOrder.begin() + pageIndex);

And all is working well.
Sign In or Register to comment.