News for hackers. Stuff that matters.
Re:Just fixed a 20-year-old bug… by Roboprog on Monday August 29, 2011 @10:31AM (#2937281)
I love cperciva's solution. OK, not solution, but at least paranoia. Back when I worked at a place called Morada in the early 90s, we had to port a C runtime library for the product to everything from 16 bit x86 "real mode" (DOS) to 64 bit DEC-Alpha, so word sizes were all over the map.

Trying to define portable size definitions in C can make you crazy (e.g. - such as trying to save a tokenized binary file from source code, such that the binary ports between platforms).

Kudos to the author for finding this bug.

There are no comments on this comment yet.