core icon indicating copy to clipboard operation
core copied to clipboard

Compile warning gcc 12 - review

Open giarve opened this issue 2 years ago • 0 comments

[ 97%] Building C object source/loader/CMakeFiles/loader.dir/source/loader_impl.c.o /home/username/metacall/core/source/loader/source/loader_impl.c: In function ‘loader_impl_load_from_memory’: /home/username/metacall/core/source/loader/source/loader_impl.c:861:66: warning: ‘loader_impl_load_handle’ reading 4096 bytes from a region of size 255 [-Wstringop-overread] 861 | loader_handle_impl handle_impl = loader_impl_load_handle(impl, iface, handle, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/username/metacall/core/source/loader/source/loader_impl.c:861:66: note: referencing argument 4 of type ‘const char[4096]’ /home/username/metacall/core/source/loader/source/loader_impl.c:506:20: note: in a call to function ‘loader_impl_load_handle’ 506 | loader_handle_impl loader_impl_load_handle(loader_impl impl, loader_impl_interface iface, loader_handle module, const loader_path path) | ^~~~~~~~~~~~~~~~~~~~~~~

giarve avatar Jun 14 '22 20:06 giarve