HaxeFoundation / HaxeFoundation/hxcpp

cppia does not seem to respect HXCPP_CHECK_POINTER

Open
#1,013 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

```haxe
var host : Dynamic = null;

host = null;

host.load(HOST_DIR); // null object reference
```
```haxe
trace("INVOKING NPE");
var reload : feathers.controls.Button = null;
reload.height = 30; // null object reference
```

the above works as expected, but fails if executed from cppia

```haxe
var host : Dynamic = null;

host = null;

host.load(HOST_DIR); // null object reference
```
```haxe
trace("INVOKING NPE");
var reload : feathers.controls.Button = null;
reload.height = 30; // SIGSEGV
```
```
// 11-09 10:17:25.573 24487 24487 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
// 11-09 10:17:25.573 24487 24487 F DEBUG : Cause: null pointer dereference
```

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.