From 912c5a755fad23e79b39b8a88ce673fe981c1fbb Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 17 Jul 2020 11:12:42 -0400 Subject: [PATCH] TT#86852 fix possible cl_status core dump Change-Id: I3ae9e15eb3bcf4d8fb7c4a7813821c8a375221bc --- debian/patches/fix-cl-status-core.patch | 11 +++++++++++ debian/patches/series | 1 + 2 files changed, 12 insertions(+) create mode 100644 debian/patches/fix-cl-status-core.patch diff --git a/debian/patches/fix-cl-status-core.patch b/debian/patches/fix-cl-status-core.patch new file mode 100644 index 0000000..61d5d07 --- /dev/null +++ b/debian/patches/fix-cl-status-core.patch @@ -0,0 +1,11 @@ +--- a/tools/cl_status.c ++++ b/tools/cl_status.c +@@ -400,6 +400,8 @@ + printf("%s\n", node); + } else { + type = hb->llc_ops->node_type(hb, node); ++ if (!type) ++ continue; + if (( ONLY_LIST_NORAMAL == TRUE ) + && (STRNCMP_CONST(type, "normal")==0)) { + printf("%s\n", node); diff --git a/debian/patches/series b/debian/patches/series index e298fce..35c2ebf 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -25,3 +25,4 @@ fix_MT9617_debian_jessie_support.patch 0001-TT-20088-Handle-changes-in-ifconfig-output-in-Debian.patch obsolete_gnutls_set_priority_functions.patch IPv6addr-interface.patch +fix-cl-status-core.patch