mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-16 03:45:24 -05:00
24 lines
736 B
Diff
24 lines
736 B
Diff
|
Partially fix CVE-2014-9112, part 3/5.
|
||
|
|
||
|
From 58df4f1b44a1142bba500f980fd26806413b1728 Mon Sep 17 00:00:00 2001
|
||
|
From: Sergey Poznyakoff <gray@gnu.org.ua>
|
||
|
Date: Tue, 02 Dec 2014 09:33:29 +0000
|
||
|
Subject: Fix typo
|
||
|
|
||
|
---
|
||
|
diff --git a/src/copyin.c b/src/copyin.c
|
||
|
index 042cc41..264bfcb 100644
|
||
|
--- a/src/copyin.c
|
||
|
+++ b/src/copyin.c
|
||
|
@@ -138,7 +138,7 @@ get_link_name (struct cpio_file_stat *file_hdr, int in_file_des)
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
- link_name = xmalloc (file_hdr->c_filesize);
|
||
|
+ link_name = xmalloc (file_hdr->c_filesize + 1);
|
||
|
tape_buffered_read (link_name, in_file_des, file_hdr->c_filesize);
|
||
|
link_name[file_hdr->c_filesize] = '\0';
|
||
|
tape_skip_padding (in_file_des, file_hdr->c_filesize);
|
||
|
--
|
||
|
cgit v0.9.0.2
|