tag -1 patch thanks
diff -Nru xz-utils-5.2.2/debian/changelog xz-utils-5.2.2/debian/changelog --- xz-utils-5.2.2/debian/changelog 2016-10-09 00:11:19.000000000 +1100 +++ xz-utils-5.2.2/debian/changelog 2016-11-20 23:18:37.000000000 +1100 @@ -1,3 +1,10 @@ +xz-utils (5.2.2-1.3) unstable; urgency=medium + + * Non-maintainer upload. + * Stop printing uninitialized buffer. (Closes: #845104) + + -- Carlos Maddela <e7ap...@gmail.com> Sun, 20 Nov 2016 23:18:37 +1100 + xz-utils (5.2.2-1.2) unstable; urgency=medium * Non-maintainer upload. diff -Nru xz-utils-5.2.2/debian/patches/series xz-utils-5.2.2/debian/patches/series --- xz-utils-5.2.2/debian/patches/series 2016-10-09 00:01:46.000000000 +1100 +++ xz-utils-5.2.2/debian/patches/series 2016-11-20 23:17:49.000000000 +1100 @@ -1,3 +1,4 @@ liblzma-skip-ABI-incompatible-check-when-liblzma.so.patch liblzma-make-dlopen-based-liblzma2-compatibility-opt.patch kfreebsd-link-against-libfreebsd-glue.patch +stop-printing-uninitialized-buffer.patch diff -Nru xz-utils-5.2.2/debian/patches/stop-printing-uninitialized-buffer.patch xz-utils-5.2.2/debian/patches/stop-printing-uninitialized-buffer.patch --- xz-utils-5.2.2/debian/patches/stop-printing-uninitialized-buffer.patch 1970-01-01 10:00:00.000000000 +1000 +++ xz-utils-5.2.2/debian/patches/stop-printing-uninitialized-buffer.patch 2016-11-20 23:18:18.000000000 +1100 @@ -0,0 +1,35 @@ +From: Carlos Maddela <e7ap...@gmail.com> +Date: Sun, 20 Nov 2016 20:57:44 +1100 +Subject: Stop printing uninitialized buffer. + +Description: Stop printing uninitialized buffer. + When 'xz -vv --robot --list' is performed on a non-existent + file, an uninitialized buffer representing the check method + used is dumped. This fix prevents this from happening. +Author: Carlos Maddela <e7ap...@gmail.com> +Origin: vendor +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845104 +Forwarded: no +Last-Update: 2016-11-20 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- + src/xz/list.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/xz/list.c b/src/xz/list.c +index 449c2bc..edf8767 100644 +--- a/src/xz/list.c ++++ b/src/xz/list.c +@@ -636,7 +636,10 @@ static void + get_check_names(char buf[CHECKS_STR_SIZE], + uint32_t checks, bool space_after_comma) + { +- assert(checks != 0); ++ // If no check mask is specified, assume "None", ++ // so we never return with an uninitialized buffer. ++ if (checks == 0) ++ checks = 1; + + char *pos = buf; + size_t left = CHECKS_STR_SIZE;