The previous code didn't set the packing correctly, which meant that we had a buffer overrun in the debug code.