hrszpuk / rvm

A simplistic bytecode virtual machine.
MIT License
4 stars 0 forks source link

Fix bugs in translation module #25

Closed hrszpuk closed 7 months ago

hrszpuk commented 7 months ago

After adding rvm devtest to dev branch I ran a quick valgrind test on the executable (building is fine) and it resulted in a pretty big memory leak as well as a segmentation fault in the translator module.

==17666== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==17666==  Bad permissions for mapped region at address 0x10B463
==17666==    at 0x4927BEB: strtok_r (strtok_r.c:72)
==17666==    by 0x1096DC: TranslateInstructions (translator.c:71)
==17666==    by 0x109452: main (main.c:60)