-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Not sure what to do about this.
When I compile I get this issue with 4coder_qol:
4coder_qol/custom/4coder_base_types.cpp:201:7: runtime error: applying non-zero offset 18446744073709551615 to null pointer
#0 0x000000403991 in block_copy /home/user/code/4coder_qol_build/4coder_qol/custom/4coder_base_types.cpp:190
#1 0x00000046e8f2 in string_append /home/user/code/4coder_qol_build/4coder_qol/custom/4coder_base_types.cpp:5235
#2 0x00000047b63f in string_list_flatten /home/user/code/4coder_qol_build/4coder_qol/custom/4coder_base_types.cpp:5728
#3 0x00000047dada in string_list_flatten /home/user/code/4coder_qol_build/4coder_qol/custom/4coder_base_types.cpp:5830
#4 0x0000004941d1 in string_replace /home/user/code/4coder_qol_build/4coder_qol/custom/4coder_base_types.cpp:6972
#5 0x0000004f1f77 in main /home/user/code/4coder_qol_build/4coder_qol/custom/4coder_metadata_generator.cpp:902
The issue comes from a call to string_list_flatten with the separator parameter Scu8(), which gives a null str pointer:
function String_Const_u8
string_list_flatten(Arena *arena, List_String_Const_u8 list, String_u8_Mod_Function_Type *mod, String_Fill_Terminate_Rule rule){
return(string_list_flatten(arena, list, mod, SCu8(), 0, rule));
}
Then eventually in block_copy the null pointer get incremented:
s += size - 1;
Metadata
Metadata
Assignees
Labels
No labels