Improve Security with "A Layer of Hurt"
...reads that data
For example, C or C++ code that reads from a UDP socket and then fuzzes the data before it's consumed by the rest of the application might look like this
char RecvBuf[1024
int BufLen = sizeof(RecvBuf
int result = recvfrom
RecvSocket
RecvBuf
BufLen
0
SOCKADDR *)&SenderAddr
SenderAddrSize
ifdef FUZZ
Fuzz(RecvBuf,&BufLen
endif...
