We've got access to all those new fancy sanitizers now that we've upgraded gcc. We should do special builds of various parts of ThinLinc with the santizers turned on and see if they find anything.
This bug probably needs to be broken down into appropriately sized components, and probably also a separate bug for automating tests like these.
This bug is too vague to work with. We don't even have any existing tests that could be extended with features like this. Closing for now.