Add a few tainted data info for coverity to avoid warnings.
Various fixed inspired by mostly harmless static analyzers warnings.
Ignoring all warnigns where analyzers expect that read/write can return more than expected buffer lengths, this is perhaps a joke :)