sds
sds copied to clipboard
Potential NULL pointer usage
In the function sdsnewlen we can see the test on a pointer that was already used as in: sh = s_malloc(hdrlen+initlen+1); if (!init) memset(sh, 0, hdrlen+initlen+1); if (sh == NULL) return NULL; <-----if this can be null, memset breaks