summaryrefslogtreecommitdiff
path: root/data/_dpkg/long_file.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/_dpkg/long_file.diff')
-rw-r--r--data/_dpkg/long_file.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/_dpkg/long_file.diff b/data/_dpkg/long_file.diff
new file mode 100644
index 000000000..8ed7b16fe
--- /dev/null
+++ b/data/_dpkg/long_file.diff
@@ -0,0 +1,13 @@
+diff -ur dpkg-1.18.25/lib/dpkg/tarfn.c dpkg-1.18.25+iPhone/lib/dpkg/tarfn.c
+--- dpkg-1.18.25/lib/dpkg/tarfn.c 2018-06-25 16:48:17.000000000 -1000
++++ dpkg-1.18.25+iPhone/lib/dpkg/tarfn.c 2018-11-14 21:23:25.000000000 -1000
+@@ -345,7 +345,8 @@
+ int long_read;
+
+ free(*longp);
+- *longp = bp = m_malloc(te->size);
++ *longp = bp = m_malloc(te->size+1);
++ bzero(bp, te->size+1);
+
+ for (long_read = te->size; long_read > 0; long_read -= TARBLKSZ) {
+ int copysize;