Skip to content

Commit

Permalink
Merge pull request #232 from azat-archive/fortify-check
Browse files Browse the repository at this point in the history
Fix fortify check by checking fortified vs fortifiable instead
  • Loading branch information
slimm609 authored Apr 18, 2024
2 parents 50514c7 + c459e7d commit 08aba81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checksec
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ filecheck() {
FS_cnt_unchecked=$(grep -cFxf <(sort <<< "${FS_func_libc}") <(sort <<< "${FS_func}"))
FS_cnt_total=$((FS_cnt_unchecked + FS_cnt_checked))

if grep -q '_chk$' <<< "$FS_func"; then
if [[ $FS_cnt_unchecked -eq $FS_cnt_checked ]]; then
echo_message '\033[32mYes\033[m' 'Yes,' ' fortify_source="yes" ' '"fortify_source":"yes",'
else
echo_message "\033[31mNo\033[m" "No," ' fortify_source="no" ' '"fortify_source":"no",'
Expand Down

0 comments on commit 08aba81

Please sign in to comment.