Annocheck: allow spaces in golang symbols
This commit is contained in:
parent
93b2318897
commit
4db2c31c2c
2 changed files with 18 additions and 1 deletions
13
annobin-golang-spaces-in-symbols.patch
Normal file
13
annobin-golang-spaces-in-symbols.patch
Normal file
|
|
@ -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
|
||||
Summary: Annotate and examine compiled binary files
|
||||
Version: 9.79
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
License: GPLv3+
|
||||
# ProtocolURL: https://fedoraproject.org/wiki/Toolchain/Watermark
|
||||
# Maintainer: nickc@redhat.com
|
||||
|
|
@ -58,6 +58,7 @@ Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz
|
|||
|
||||
# Insert patches here, if needed. Eg:
|
||||
Patch01: annobin.unicode.patch
|
||||
Patch03: annobin-golang-spaces-in-symbols.patch
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
|
|
@ -325,6 +326,9 @@ fi
|
|||
#---------------------------------------------------------------------------------
|
||||
|
||||
%changelog
|
||||
* Thu Dec 02 2021 Nick Clifton <nickc@redhat.com> - 9.79-4
|
||||
- Annocheck: Allow spaces in golang symbols.
|
||||
|
||||
* Wed Nov 10 2021 Nick Clifton <nickc@redhat.com> - 9.79-3
|
||||
- Annocheck: Add test for the presence of unicode characters in identifiers. (#2018850)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue