12 Jun 2012 08:31
SDL_net UDP overflow
cyberfish <m <at> matthewlai.ca>
2012-06-12 06:31:47 GMT
2012-06-12 06:31:47 GMT
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!
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
RSS Feed