Fix HV-VES static code vulnerabilities