HaxeFoundation / hashlink

A virtual machine for Haxe
https://hashlink.haxe.org/
MIT License
812 stars 158 forks source link

Fix multiple instances of undefined behaviour and crashes when using ubsan #677

Open GasInfinity opened 7 months ago

GasInfinity commented 7 months ago

While compiling with zig cc I encountered crashes due to undefined behaviour (It enables ubsan by default in debug/safe builds). This PR aims to fix some code which causes ub

Some of the fixes include: