Fortify SCA Chinese garbled code and Chinese rule base configuration scheme
1. Chinese garbled configuration
single file configuration
Edit - Set Encoding:
Select other encodings and configure UTF-8 encoding:
global configuration
Open productlaunch.cmd:
Fortify_SCA\Core\private-bin\awb\productlaunch.cmd
At the end of the last line add-Dfile.encoding=utf-8
before fixing:
start "%FORTIFY_CORE%" /B /MIN "%FORTIFY_CORE%\private-bin\awb\eclipse\eclipse.exe" -vm "%JAVA_CMD%" -startup "%FORTIFY_CORE%\lib\awb-startup-18.20.1071.jar" -os win32 -ws win32 -arch x86_64 %USER_OPTS% %AWB_ARGS% -vmargs -Xmx2G -XX:-UseCompressedOops %AWB_VM_OPTS% %USER_VM_OPTS% -Dcom.fortify.InstallRoot="%FORTIFY_HOME%" >NUL
After modification:
start "Fortify" /B /MIN "%FORTIFY_CORE%\private-bin\awb\eclipse\eclipse.exe" -vm "%JAVA_CMD%" -startup "%FORTIFY_CORE%\lib\awb-startup-20.2.2.0003.jar" -os win32 -ws win32 -arch x86_64 %USER_OPTS% %AWB_ARGS% -vmargs -Xmx2G -XX:-UseCompressedOops %AWB_VM_OPTS% %USER_VM_OPTS% -Dcom.fortify.InstallRoot="%FORTIFY_HOME%" -Dfile.encoding=utf-8 >NUL
Restart SCA to solve the problem of Chinese garbled characters:
2. Configure the Chinese rule base
Download the rule base:
Put the decompressed rules
and ExternalMetadata
placed inFortify\Fortify_SCA_xxx\Core\config
run scapostinstall.cmd
:
Configuration language:
Set Options:
Update the rule base:
OK:
Test the export and successfully configure the Chinese rules: