code is broken, but any small change in the output format might overrun the buffer with the old size.
Attach a file by drag & drop or click to upload