Fix tds_msg parser writing anywhere in memory