ruffle icon indicating copy to clipboard operation
ruffle copied to clipboard

core: Truncate socket host by null bytes

Open Dinnerbone opened this issue 1 year ago • 1 comments

Example:

socket.connect("127.0.0.1" + unescape("%00") + "this part is ignored, flash stops at the null byte")

Flash truncates at any null byte - likely a low level method thinking it's getting a cstring. This emulates the truncation behaviour, fixing a Habbo connection issue from Discord.

No tests because our test suite won't run into this, it ignores hosts and everything is local.

Dinnerbone avatar Aug 26 '24 19:08 Dinnerbone

Added unit test!

Dinnerbone avatar Aug 27 '24 17:08 Dinnerbone