The ChunkHeader array is five unsigned chars big, they're indexed 0..4 - but in the error message (when ChunkHeader[4] isn't 2 - indicating zlib compression, which seems to be the only allowed compression method for chunks) the contents of ChunkHeader[5] is printed. Maybe not so dangerous, but it'll give garbage results in the log.