News for hackers. Stuff that matters.
Re: A bug I won't forget by cgh on Monday May 28, 2012 @03:04PM (#4034565)
By default, the JVM initialises arrays as appropriate for their type. Presumably this was an array of String, so the initialisation values are nulls, not zeros. Arrays of boolean are initialised to false, etc.
Re: A bug I won't forget by darklajid on Monday May 28, 2012 @03:40PM (#4034675)
We don't know anything about it, because the blog post is slightly meager..

That said, this reads more like a byte[] array or similar to me, since you are reading data from the net/a stream. Somewhere there will be a process to interpret these bytes as a string in a specific encoding, but the error 'sounds' like being related to the raw buffer of power of 2 size bytes.