This was causing crashes during unit test runs, as stack smashing protections got triggered. Issue spotted by weasel