luauser32167

Results 16 issues of luauser32167

In [renderer.c:172](https://github.com/rxi/lite/blob/38bd9b3326c02e43f244623f97a622b11f074415/src/renderer.c#L172), if `fopen` fails (the font file was not found), then the `font` variable allocated earlier is not freed. I think this was the only problem found by [clang-analyzer/scan-build](https://clang-analyzer.llvm.org/)....

As far as I understand, dead entities are only filtered before calling the drawing/rendering functions. While iterating over entities we don't seem to be skipping those with their `->dead[i]` flag...

It seems that, currently, there is no way to stop the umka vm when it gets caught in an infinite loop. Perhaps a notion of maximum number of opcodes allowed,...

Suppose we have the following C library: ```mylib.h``` ``` #ifndef MYLIB_H #define MYLIB_H #include int64_t mylib_add(int64_t a, int64_t b); int64_t mylib_mul(int64_t a, int64_t b); #endif // MYLIB_H ``` ```mylib.c``` ```...

enhancement
api

```mymod.um```: ``` type s64 = int; fn f*(xs: []s64): s64 { return xs[0]; } ``` ```main.um``` ``` import "mymod.um"; type s64 = int; fn main() { var xs: []s64 =...

enhancement

```Go // 000000001 3 ENTER_FRAME 1 0 // 000000002 2 PUSH_LOCAL_PTR -8 // 000000003 2 ZERO 8 // 000000004 3 LEAVE_FRAME // 000000005 3 RETURN 0 // fn main() {...

enhancement

```Go fn divrem1(a, b: int): (int, int) { var q: int = a / b; var r: int = a - q*b; return q, r; } fn divrem2(a, b: int):...

enhancement

```Go fn main() { var x: int = x + 10; // no error printf("%d\n", x); // 10 } ``` With [the few](https://godbolt.org/z/7rKeEMPzs) languages that I've tested, it seems that...

suspicious

``` fn main() { var x: int32 = "a"; // Error: Incompatible types int32 and str var y: int32 = "b"; // not reported } ``` Reporting more than a...

enhancement

The following program: ```C #include #include "miniz.c" int main(void) { FILE* f = fopen("files.zip", "rb"); if (NULL == f) { printf("error: 'fopen'\n"); exit(1); } mz_zip_archive ar = {0}; if (!mz_zip_reader_init_cfile(&ar,...