* Fix the Coverity scan issues * Fix the insecure data handling (TAINTED_SCALAR) issue found in coverity scan