Annocheck: Allow spaces in golang symbols
This commit is contained in:
parent
bec0fb1f02
commit
0fb007a262
|
@ -0,0 +1,13 @@
|
||||||
|
--- annobin.orig/annocheck/hardened.c 2021-12-02 15:27:27.325863983 +0000
|
||||||
|
+++ annobin-9.87/annocheck/hardened.c 2021-12-02 15:28:03.915609648 +0000
|
||||||
|
@@ -3108,6 +3108,10 @@ contains_suspicious_characters (const un
|
||||||
|
if (isgraph (c))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
+ /* Golang allows spaces in some symbols. */
|
||||||
|
+ if (c == ' ' && (per_file.lang == LANG_GO || (per_file.seen_tools & TOOL_GO)))
|
||||||
|
+ continue;
|
||||||
|
+
|
||||||
|
/* Control characters are always suspect. So are spaces and DEL */
|
||||||
|
if (iscntrl (c) || c == ' ' || c == 0x7f)
|
||||||
|
return true;
|
|
@ -2,7 +2,7 @@
|
||||||
Name: annobin
|
Name: annobin
|
||||||
Summary: Annotate and examine compiled binary files
|
Summary: Annotate and examine compiled binary files
|
||||||
Version: 9.87
|
Version: 9.87
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
# Maintainer: nickc@redhat.com
|
# Maintainer: nickc@redhat.com
|
||||||
# Web Page: https://sourceware.org/annobin/
|
# Web Page: https://sourceware.org/annobin/
|
||||||
|
@ -65,6 +65,7 @@ Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz
|
||||||
# pass manager.
|
# pass manager.
|
||||||
Patch01: 0001-llvm-plugin-Add-flegacy-pass-manager-option-to-the-t.patch
|
Patch01: 0001-llvm-plugin-Add-flegacy-pass-manager-option-to-the-t.patch
|
||||||
Patch02: annobin.unicode.patch
|
Patch02: annobin.unicode.patch
|
||||||
|
Patch03: annobin-golang-spaces-in-symbols.patch
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -465,6 +466,9 @@ fi
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Dec 02 2021 Nick Clifton <nickc@redhat.com> - 9.87-5
|
||||||
|
- Annocheck: Allow spaces in golang symbols.
|
||||||
|
|
||||||
* Wed Nov 10 2021 Nick Clifton <nickc@redhat.com> - 9.87-4
|
* Wed Nov 10 2021 Nick Clifton <nickc@redhat.com> - 9.87-4
|
||||||
- Annocheck: Add test for the presence of unicode characters in identifiers.
|
- Annocheck: Add test for the presence of unicode characters in identifiers.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue