News for hackers. Stuff that matters.
Re:Why I Write Games in C (yes, C) by stephc_int13 on Saturday September 21, 2019 @07:16PM (#21038508)
In gamedev, we often use UDP for network I/O.

I am far from an expert in security but I've done a bit of reversing/hacking when I was 16 years old (DOS era)

I think this is hard to check for everything, but in my opinion, good security can be achieved with extreme simplicity.

Packets are fixed-size, every fields are manually bound checked and the packet is rejected if anything looks wrong.

Re:Why I Write Games in C (yes, C) by eropple on Saturday September 21, 2019 @08:06PM (#21038745)
That jibes with my knowledge.

But I've seen some real weird stuff before. ;) Folks using variable-length fields and happily just dumping the contents into eval(), all sorts of awful.

Re:Why I Write Games in C (yes, C) by ncmncm on Sunday September 22, 2019 @04:31AM (#21040297)
Bad code is bad code, in any language.