antirez / antirez/hping

gcc warns memcpy will always overflow: memcpy(&icmp, p, sizeof(subtcp)); (Mac OS)

Abierto
#53 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
C
Estrellas
1.7k
Forks
364
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I get this compiler warning on Mac OS.

This looks like a buffer overflow that needs to get fixed.

```
gcc -c -O2 -Wall -g scan.c
scan.c:459:4: warning: 'memcpy' will always overflow; destination buffer has size 8, but size argument is 20 [-Wbuiltin-memcpy-chk-size]
memcpy(&icmp, p, sizeof(subtcp));
^
1 warning generated.
```

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.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.