XmiliaH

Results 12 issues of XmiliaH

As noted in https://github.com/dibyendumajumdar/ravi/issues/223#issuecomment-845122991 there is a discrepancy between the VM and JIT for the `OP_RAVI_TOSTRING`. The VM allows `nil`, however, the JIT doesn't. Following code produces an error after...

Boolean variables seem to only be implemented half. They can be declared with `local b:boolean` but `@boolean(b)` casts b to a `usertype` with metatable `boolean`. Furthermore, `local b:boolean = tostring(1)`...

fixed

If an integer or number array is accessed through an upvalue, the type of the result will be the same as the array, since the handling case in `luaK_dischargevars` does...

bug
fixed

There is an integer overflow in `ravi_create_slice` at: https://github.com/dibyendumajumdar/ravi/blob/56a59a1f3117a8bc88206305b94398678de1bdff/src/lapi.c#L903 This can result in slices with a length or index that exceeds that of the parent as can be seen in...

bug
fixed

There is an integer overflow in `raviH_new_integer_array` at https://github.com/dibyendumajumdar/ravi/blob/56a59a1f3117a8bc88206305b94398678de1bdff/src/ltable.c#L893 When the requested array size is `0xFFFFFFFF` the array being allocated is of size 0 but the initialization will segfault as...

bug
fixed

In the case where BNOT receives a float as input, it will deduce that the output is a float too. However, this is wrong since at runtime BNOT will cast...

bug
fixed

The return type for LEN is wrong if the `__len` metamethod for floats or integers is overwritten and the length from an array element from a ravi array is taken....

bug
fixed

The default for the `require` option for `NodeVM` is `false` but exility specifying it as `false` was not possible.

Add option to override if modules should be loaded in strict mode or not.

Do to security issues that cannot be properly addressed I (XmiliaH) will stop maintaining this library. For a replacement look into [isolated-vm](https://www.npmjs.com/package/isolated-vm).

bug
wontfix
confirmed