You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/neauoire/Git/Joy/gc.c: In function ‘GC_realloc’:
/home/neauoire/Git/Joy/gc.c:369:27: error: pointer ‘old’ may be used after ‘realloc’ [-Werror=use-after-free]
369 | remind(ptr, size, forget(old));
| ^~~~~~~~~~~
/home/neauoire/Git/Joy/gc.c:364:16: note: call to ‘realloc’ here
364 | if ((ptr = realloc(old, size)) == 0)
| ^~~~~~~~~~~~~~~~~~
In file included from /home/neauoire/Git/Joy/gc.c:26:
In function ‘forget’,
inlined from ‘GC_realloc’ at /home/neauoire/Git/Joy/gc.c:369:20:
/home/neauoire/Git/Joy/khash.h:507:28: error: pointer ‘old’ may be used after ‘realloc’ [-Werror=use-after-free]
507 | #define kh_get(name, h, k) kh_get_##name(h, k)
| ^~~~~~~~~~~~~~~~~~~
/home/neauoire/Git/Joy/gc.c:348:16: note: in expansion of macro ‘kh_get’
348 | if ((key = kh_get(Backup, MEM, (uint64_t)ptr)) != kh_end(MEM)) {
| ^~~~~~
/home/neauoire/Git/Joy/gc.c: In function ‘GC_realloc’:
/home/neauoire/Git/Joy/gc.c:364:16: note: call to ‘realloc’ here
364 | if ((ptr = realloc(old, size)) == 0)
| ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/joy.dir/build.make:202: CMakeFiles/joy.dir/gc.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/joy.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: