Subversion Repositories libtar

Compare Revisions

Ignore whitespace Rev 31 → Rev 32

/trunk/debian/patches/CVE-2013-4420.patch
6,7 → 6,7
 
--- a/lib/decode.c
+++ b/lib/decode.c
@@ -21,13 +21,42 @@
@@ -22,13 +22,42 @@
# include <string.h>
#endif
50,7 → 50,7
/* allocate the th_pathname buffer if not already */
if (t->th_pathname == NULL)
@@ -50,7 +79,7 @@ th_get_pathname(TAR *t)
@@ -51,7 +80,7 @@ th_get_pathname(TAR *t)
}
/* will be deallocated in tar_close() */
/trunk/debian/patches/no_maxpathlen.patch
156,7 → 156,7
/* print file info */
--- a/lib/decode.c
+++ b/lib/decode.c
@@ -32,7 +32,8 @@ th_get_pathname(TAR *t)
@@ -33,7 +33,8 @@ th_get_pathname(TAR *t)
/* allocate the th_pathname buffer if not already */
if (t->th_pathname == NULL)
{
166,7 → 166,7
if (t->th_pathname == NULL)
/* out of memory */
return NULL;
@@ -40,11 +41,11 @@ th_get_pathname(TAR *t)
@@ -41,11 +42,11 @@ th_get_pathname(TAR *t)
if (t->th_buf.prefix[0] == '\0')
{
/trunk/debian/patches/no_static_buffers.patch
12,7 → 12,15
 
--- a/lib/decode.c
+++ b/lib/decode.c
@@ -26,20 +26,30 @@
@@ -13,6 +13,7 @@
#include <internal.h>
#include <stdio.h>
+#include <stdlib.h>
#include <sys/param.h>
#include <pwd.h>
#include <grp.h>
@@ -26,20 +27,30 @@
char *
th_get_pathname(TAR *t)
{