cyberfish | 12 Jun 2012 08:31
Picon

SDL_net UDP overflow

On the SDL_net doc page (http://www.libsdl.org/projects/SDL_net/docs/SDL_net_frame.html), it says the packet passed into UDP_Recv must have big enough buffer allocated for the data expected.

Does that mean the only safe way to use it is to allocate maximum UDP packet size? Since anyone can send a packet to an open UDP port, and there would be no way to stop someone from sending a huge packet and overflow whatever buffer you have?

Thanks!
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Gmane