Potential NULL pointer usage
Abierto
- Lenguaje dominante
- C
- Estrellas
- 5.6k
- Forks
- 510
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.