From 6ec3ae320790f1313629ce4f19614ccbb9648c75 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 16 Jan 2019 15:06:46 -0700 Subject: [PATCH] - Avoid passing NULL as argument to %s in printf call --- ltrace-0.7.91-null.patch | 14 ++++++++++++++ ltrace.spec | 9 ++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 ltrace-0.7.91-null.patch diff --git a/ltrace-0.7.91-null.patch b/ltrace-0.7.91-null.patch new file mode 100644 index 0000000..4ff7e6a --- /dev/null +++ b/ltrace-0.7.91-null.patch @@ -0,0 +1,14 @@ +diff --git a/output.c b/output.c +index 7cab383..18f9cf0 100644 +--- a/output.c ++++ b/output.c +@@ -598,6 +598,9 @@ frame_callback (Dwfl_Frame *state, void *arg) + NULL, NULL, NULL); + symname = dwfl_module_addrinfo(mod, pc, &off, &sym, + NULL, NULL, NULL); ++ } else { ++ modname = "unknown"; ++ symname = "unknown"; + } + + /* This mimics the output produced by libunwind below. */ diff --git a/ltrace.spec b/ltrace.spec index 4ea8190..0528806 100644 --- a/ltrace.spec +++ b/ltrace.spec @@ -1,7 +1,7 @@ Summary: Tracks runtime library calls from dynamically linked executables Name: ltrace Version: 0.7.91 -Release: 28%{?dist} +Release: 29%{?dist} URL: http://ltrace.alioth.debian.org/ License: GPLv2+ Group: Development/Debuggers @@ -106,6 +106,9 @@ Patch27: ltrace-rh1423913.patch # AARCH64 large parameters and syscall testsuite fixes. Patch28: ltrace-0.7.91-aarch64-params.patch +# gcc-9 fix. Avoid passing NULL as argument to %s +Patch29: ltrace-0.7.91-null.patch + %description Ltrace is a debugging program which runs a specified command until the command exits. While the command is executing, ltrace intercepts and @@ -146,6 +149,7 @@ execution of processes. %patch26 -p1 %patch27 -p1 %patch28 -p1 +%patch29 -p1 %build autoreconf -i @@ -170,6 +174,9 @@ echo ====================TESTING END===================== %{_datadir}/ltrace %changelog +* Wed Jan 16 2019 Jeff Law - 0.7.91-29 +- Avoid passing NULL as argument to %s in printf call + * Fri Jul 13 2018 Fedora Release Engineering - 0.7.91-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild