Check parameter to avoid uninitialized var

reported by coverity
Add coverity annotation for abort like functions
Include string.h for memset
Merge branch 'atronix' into coverity_scan
Shut off compiler complains
Avoid out-of-bound writing

Not sure if this is the correct fix
Avoid uninitialized variable
Avoid uninitialized pointer
Avoid uninitialized pointer
Merge branch 'atronix' into coverity_scan