Fortify SCA Chinese garbled code and Chinese rule base configuration scheme

Fortify SCA Chinese garbled code and Chinese rule base configuration scheme

1. Chinese garbled configuration

single file configuration

Edit - Set Encoding:

insert image description here

Select other encodings and configure UTF-8 encoding:

insert image description here

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:

insert image description here


2. Configure the Chinese rule base

Download the rule base:

Fortify SCA Chinese rule base

Put the decompressed rulesand ExternalMetadataplaced inFortify\Fortify_SCA_xxx\Core\config

run scapostinstall.cmd:

insert image description here

Configuration language:

insert image description here

Set Options:

insert image description here

Update the rule base:

insert image description here

OK:

insert image description here

Test the export and successfully configure the Chinese rules:

insert image description here

Guess you like

Origin blog.csdn.net/Gherbirthday0916/article/details/130176036