ivan icon indicating copy to clipboard operation
ivan copied to clipboard

developer console broken by string corruption?

Open AquariusPower opened this issue 4 years ago • 2 comments

run ivan with a debugger (like nemiver), load a game then: open the dev console with Ctrl+` type: help and hit enter

devcons.cpp at

362   DEVCMDMSG("Trying to run: %s ('%s' '%s')",strFullCmd.c_str(),strCmd.c_str(),strParams.c_str());

They evaluate correctly at that line above as: strFullCmd="help" strCmd="help" strParams=""

but crashes with: Selection_008 looks like from ::AddMessage() to __IO_vsprintf something breaks 2 strings that become "\?\?UUU" and at that point I have absolutely no idea anymore, what could be happening?

AquariusPower avatar Mar 01 '20 21:03 AquariusPower

Isn't there some conversion from festring to char*? I think I've seen similarly messed up strings when I had a festring and tried to convert it to char* without using the CChar() method.

red-kangaroo avatar Mar 01 '20 21:03 red-kangaroo

mmm... it is using std::string and not festring!!! let me try something..

AquariusPower avatar Mar 01 '20 21:03 AquariusPower