File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ S26_kernel_vuln_verifier()
297
297
# replace the spaces with the verified entry -> : CVEs: 1234 (123):
298
298
lTMP_CVE_ENTRY=$( echo " ${lTMP_CVE_ENTRY} " | sed -r ' s/(CVEs:\ [0-9]+)\s+/\1 (' " ${# lVERIFIED_BB_VULNS_ARR[@]} " ' )/' )
299
299
# ensure we have the right length -> : CVEs: 1234 (123) :
300
- lTMP_CVE_ENTRY=$( printf ' %s%*s' " ${lTMP_CVE_ENTRY%: } " $(( 22 - ${# lTMP_CVE_ENTRY} )) " :" )
300
+ lTMP_CVE_ENTRY=$( printf ' %s%*s' " ${lTMP_CVE_ENTRY%: } " " $(( 22 - " ${# lTMP_CVE_ENTRY} " )) " " :" )
301
301
302
302
# final replacement in file:
303
303
sed -i -r ' s/:\s+CVEs:\ [0-9]+\s+:/' " ${lTMP_CVE_ENTRY} " ' /' " ${LOG_PATH_MODULE} /vuln_summary.txt"
@@ -306,7 +306,8 @@ S26_kernel_vuln_verifier()
306
306
# print_output "[*] Replacing ${lVERIFIED_BB_CVE} in ${LOG_PATH_MODULE}/cve_sum/*_finished.txt" "no_log"
307
307
local lV_ENTRY=" (V)"
308
308
# ensure we have the correct length
309
- lV_ENTRY=$( printf ' %s%*s' ${lV_ENTRY} $(( 19 - ${# lVERIFIED_BB_CVE} - ${# lV_ENTRY} )) )
309
+ # shellcheck disable=SC2183
310
+ lV_ENTRY=$( printf ' %s%*s' " ${lV_ENTRY} " " $(( 19 - "${# lVERIFIED_BB_CVE} "- "${# lV_ENTRY} ")) " )
310
311
sed -i -r ' s/(' " ${lVERIFIED_BB_CVE} " ' )\s+/\1 ' " ${lV_ENTRY} " ' /' " ${LOG_PATH_MODULE} /cve_sum/" * _finished.txt || true
311
312
done
312
313
fi
You can’t perform that action at this time.
0 commit comments