2007-05-07 14:30:01 +02:00
|
|
|
archival/libunarchive/get_header_tar.c: In function 'get_header_tar':
|
|
|
|
archival/libunarchive/get_header_tar.c:140: warning: array subscript is above array bounds
|
|
|
|
archival/libunarchive/get_header_tar.c:155: warning: array subscript is above array bounds
|
|
|
|
archival/libunarchive/get_header_tar.c:158: warning: array subscript is above array bounds
|
|
|
|
make[1]: *** [archival/libunarchive/get_header_tar.o] Error 1
|
|
|
|
|
|
|
|
---
|
2008-10-22 17:42:03 +02:00
|
|
|
archival/libunarchive/get_header_tar.c | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
2007-05-07 14:30:01 +02:00
|
|
|
|
2007-07-16 07:36:25 +02:00
|
|
|
--- a/archival/libunarchive/get_header_tar.c
|
|
|
|
+++ b/archival/libunarchive/get_header_tar.c
|
2008-10-22 17:42:03 +02:00
|
|
|
@@ -225,6 +225,9 @@ char FAST_FUNC get_header_tar(archive_ha
|
2007-05-07 14:30:01 +02:00
|
|
|
}
|
2007-11-19 10:18:53 +01:00
|
|
|
file_header->link_target = NULL;
|
2008-10-22 17:42:03 +02:00
|
|
|
if (!p_linkname && parse_names && tar.linkname[0]) {
|
2007-05-07 14:30:01 +02:00
|
|
|
+ /* we trash magic[0] here to terminate tar.linkname, it's ok */
|
|
|
|
+ tar.magic[0] = '\0';
|
2008-10-22 17:42:03 +02:00
|
|
|
+
|
|
|
|
file_header->link_target = xstrndup(tar.linkname, sizeof(tar.linkname));
|
2007-11-19 10:18:53 +01:00
|
|
|
/* FIXME: what if we have non-link object with link_target? */
|
|
|
|
/* Will link_target be free()ed? */
|