Skip to content

Editor: Mismatched reported script data size and actual data size causes a crash during save

Here's an example affected plugin & dump:

openmw-cs-crash(1).log

badscript.esp

When a plugin reports a certain size for compiled script data which is larger than what's actually present, saving fails and causes a segfault.

I tried intentionally destroying script bytecode, since the mod I work on is OpenMW exclusive to begin with. This worked fine until OpenCS tried to rely on the bytecode when saving.