Open nicholastolent opened 4 years ago
Please start working on this!!!
https://github.com/godotengine/godot/issues/31463
static inline uint32_t hash_djb2(const char *p_cstr) {
const unsigned char *chr = (const unsigned char *)p_cstr;
uint32_t hash = 5381;
uint32_t c;
while ((c = *chr++))
hash = ((hash << 5) + hash) + c; /* hash * 33 + c */
return hash;
}
crashes when uses hash_djb2, doesn't check for NULL
Please select an issue you would like to work and document it here.