This pr fixes some bugs that could cause wrong events to be written to the buffer for unused xml events. When this happens the error is quietly discarded and deserializing flattened fields no longer works.
This pr only fixes the bugs that could allow the buffer to be corrupted. We should probably emit a warning when the buffer is corrupted.
This pr fixes some bugs that could cause wrong events to be written to the buffer for unused xml events. When this happens the error is quietly discarded and deserializing flattened fields no longer works.
This pr only fixes the bugs that could allow the buffer to be corrupted. We should probably emit a warning when the buffer is corrupted.