From cbffab246997fb5a06211dfb706b54e5ae5bb59f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 16:58:51 +0200 Subject: Adding upstream version 1.21.22. Signed-off-by: Daniel Baumann --- scripts/t/Dpkg_Source_Patch/c-style.patch | 4 ++++ scripts/t/Dpkg_Source_Patch/ghost-hunk.patch | 7 +++++++ scripts/t/Dpkg_Source_Patch/indent-header.patch | 9 +++++++++ scripts/t/Dpkg_Source_Patch/index-+++.patch | 4 ++++ scripts/t/Dpkg_Source_Patch/index-alone.patch | 3 +++ scripts/t/Dpkg_Source_Patch/index-inert.patch | 8 ++++++++ scripts/t/Dpkg_Source_Patch/partial.patch | 3 +++ 7 files changed, 38 insertions(+) create mode 100644 scripts/t/Dpkg_Source_Patch/c-style.patch create mode 100644 scripts/t/Dpkg_Source_Patch/ghost-hunk.patch create mode 100644 scripts/t/Dpkg_Source_Patch/indent-header.patch create mode 100644 scripts/t/Dpkg_Source_Patch/index-+++.patch create mode 100644 scripts/t/Dpkg_Source_Patch/index-alone.patch create mode 100644 scripts/t/Dpkg_Source_Patch/index-inert.patch create mode 100644 scripts/t/Dpkg_Source_Patch/partial.patch (limited to 'scripts/t/Dpkg_Source_Patch') diff --git a/scripts/t/Dpkg_Source_Patch/c-style.patch b/scripts/t/Dpkg_Source_Patch/c-style.patch new file mode 100644 index 0000000..290a640 --- /dev/null +++ b/scripts/t/Dpkg_Source_Patch/c-style.patch @@ -0,0 +1,4 @@ +--- /dev/null ++++ "b/\tmp/c-style" +@@ -0,0 +1 @@ ++Escaped diff --git a/scripts/t/Dpkg_Source_Patch/ghost-hunk.patch b/scripts/t/Dpkg_Source_Patch/ghost-hunk.patch new file mode 100644 index 0000000..32c3efe --- /dev/null +++ b/scripts/t/Dpkg_Source_Patch/ghost-hunk.patch @@ -0,0 +1,7 @@ +--- a/disable/partial-file ++++ b/disable/partial-file +@@ -0,0 +1,1 @@disable ++++ b/symlink/hunk-file +--- a/symlink/hunk-file +@@ -0,0 +1,1 @@ ++Escaped diff --git a/scripts/t/Dpkg_Source_Patch/indent-header.patch b/scripts/t/Dpkg_Source_Patch/indent-header.patch new file mode 100644 index 0000000..4bef008 --- /dev/null +++ b/scripts/t/Dpkg_Source_Patch/indent-header.patch @@ -0,0 +1,9 @@ + --- /dev/null + +++ b/symlink/index-file + @@ -0,0 +1,1 @@ + +Escaped + +--- /dev/null ++++ b/dummy-file +@@ -0,0 +1,1 @@ ++Dummy to make the code see a valid hunk diff --git a/scripts/t/Dpkg_Source_Patch/index-+++.patch b/scripts/t/Dpkg_Source_Patch/index-+++.patch new file mode 100644 index 0000000..4ebc23e --- /dev/null +++ b/scripts/t/Dpkg_Source_Patch/index-+++.patch @@ -0,0 +1,4 @@ +Index: index/symlink/index-file ++++ +@@ -0,0 +1,1 @@ ++Escaped diff --git a/scripts/t/Dpkg_Source_Patch/index-alone.patch b/scripts/t/Dpkg_Source_Patch/index-alone.patch new file mode 100644 index 0000000..904d3d1 --- /dev/null +++ b/scripts/t/Dpkg_Source_Patch/index-alone.patch @@ -0,0 +1,3 @@ +Index: index/symlink/index-file +@@ -0,0 +1,1 @@ ++Escaped diff --git a/scripts/t/Dpkg_Source_Patch/index-inert.patch b/scripts/t/Dpkg_Source_Patch/index-inert.patch new file mode 100644 index 0000000..5d16c7d --- /dev/null +++ b/scripts/t/Dpkg_Source_Patch/index-inert.patch @@ -0,0 +1,8 @@ +This could be a comment about the patch itself, where we could use an +Index: a/ header with /../ inside that could be interpreted as a +malicious pseudo-header, so we should not validate it, + +--- /dev/null ++++ b/inert-file +@@ -0,0 +1,1 @@ ++Inert diff --git a/scripts/t/Dpkg_Source_Patch/partial.patch b/scripts/t/Dpkg_Source_Patch/partial.patch new file mode 100644 index 0000000..0878858 --- /dev/null +++ b/scripts/t/Dpkg_Source_Patch/partial.patch @@ -0,0 +1,3 @@ ++++ b/symlink/partial-file +@@ -0,0 +1,1 @@ ++Escaped -- cgit v1.2.3