diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/files/unicode | |
parent | Initial commit. (diff) | |
download | lintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip |
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/files/unicode')
8 files changed, 32 insertions, 0 deletions
diff --git a/t/recipes/checks/files/unicode/trojan/exe-vs-gif-in-patched-filename/build-spec/fill-values b/t/recipes/checks/files/unicode/trojan/exe-vs-gif-in-patched-filename/build-spec/fill-values new file mode 100644 index 0000000..ac02fd0 --- /dev/null +++ b/t/recipes/checks/files/unicode/trojan/exe-vs-gif-in-patched-filename/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: source-native +Testname: exe-vs-gif-in-patched-filename +Description: Unicode RLTO in patched file name diff --git a/t/recipes/checks/files/unicode/trojan/exe-vs-gif-in-patched-filename/build-spec/pre-build b/t/recipes/checks/files/unicode/trojan/exe-vs-gif-in-patched-filename/build-spec/pre-build new file mode 100755 index 0000000..ab43774 --- /dev/null +++ b/t/recipes/checks/files/unicode/trojan/exe-vs-gif-in-patched-filename/build-spec/pre-build @@ -0,0 +1,9 @@ +#!/bin/bash + +set -e + +DIR="$1" + +mkdir -p "$DIR/scripts" +NAME=`echo -e 'example\xE2\x80\xAEfig.exe'` +touch "$DIR/scripts/$NAME" diff --git a/t/recipes/checks/files/unicode/trojan/exe-vs-gif-in-patched-filename/eval/desc b/t/recipes/checks/files/unicode/trojan/exe-vs-gif-in-patched-filename/eval/desc new file mode 100644 index 0000000..93e20d8 --- /dev/null +++ b/t/recipes/checks/files/unicode/trojan/exe-vs-gif-in-patched-filename/eval/desc @@ -0,0 +1,2 @@ +Testname: exe-vs-gif-in-patched-filename +Check: files/unicode/trojan diff --git a/t/recipes/checks/files/unicode/trojan/exe-vs-gif-in-patched-filename/eval/hints b/t/recipes/checks/files/unicode/trojan/exe-vs-gif-in-patched-filename/eval/hints new file mode 100644 index 0000000..d1e3a72 --- /dev/null +++ b/t/recipes/checks/files/unicode/trojan/exe-vs-gif-in-patched-filename/eval/hints @@ -0,0 +1 @@ +exe-vs-gif-in-patched-filename (source): unicode-trojan File name U+202E "RIGHT-TO-LEFT OVERRIDE" [scripts/exampleâ®fig.exe] diff --git a/t/recipes/checks/files/unicode/trojan/rte-in-contents/build-spec/fill-values b/t/recipes/checks/files/unicode/trojan/rte-in-contents/build-spec/fill-values new file mode 100644 index 0000000..c619364 --- /dev/null +++ b/t/recipes/checks/files/unicode/trojan/rte-in-contents/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: source-native +Testname: rte-in-contents +Description: RTE in file contents diff --git a/t/recipes/checks/files/unicode/trojan/rte-in-contents/build-spec/pre-build b/t/recipes/checks/files/unicode/trojan/rte-in-contents/build-spec/pre-build new file mode 100755 index 0000000..d9672a5 --- /dev/null +++ b/t/recipes/checks/files/unicode/trojan/rte-in-contents/build-spec/pre-build @@ -0,0 +1,11 @@ +#!/bin/bash + +set -e + +DIR="$1" + +mkdir -p "$DIR/scripts" + +echo -e '#!/bin/sh\n\npotential\xE2\x80\xABtrojan' > "$DIR/scripts/careful" + +chmod +x "$DIR/scripts/careful" diff --git a/t/recipes/checks/files/unicode/trojan/rte-in-contents/eval/desc b/t/recipes/checks/files/unicode/trojan/rte-in-contents/eval/desc new file mode 100644 index 0000000..f5c13e0 --- /dev/null +++ b/t/recipes/checks/files/unicode/trojan/rte-in-contents/eval/desc @@ -0,0 +1,2 @@ +Testname: rte-in-contents +Check: files/unicode/trojan diff --git a/t/recipes/checks/files/unicode/trojan/rte-in-contents/eval/hints b/t/recipes/checks/files/unicode/trojan/rte-in-contents/eval/hints new file mode 100644 index 0000000..6c3251f --- /dev/null +++ b/t/recipes/checks/files/unicode/trojan/rte-in-contents/eval/hints @@ -0,0 +1 @@ +rte-in-contents (source): unicode-trojan Contents U+202B "RIGHT-TO-LEFT EMBEDDING" [scripts/careful:3] |