HaxeFoundation / HaxeFoundation/hxcpp

Sys.println(null) causes a segmentation fault

Open
#964 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
330
Forks
227
Avg merge
2d 16h
Merged PRs (30d)
18

Description

As said in the title, trying to do `Sys.println(null)` results in a segmentation fault. From having a look through the code, it seems that from Dynamic it goes straight to hx::String, which is able to have the value `null`. However. after that there is no check whether the string is `null` before trying to print it out.

This issue might be somewhat relevant:
https://github.com/HaxeFoundation/haxe/issues/9588

EDIT: This is does not seem to be an issue on Windows.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.