diff --git a/SOURCES/ltrace-0.7.91-null.patch b/SOURCES/ltrace-0.7.91-null.patch new file mode 100644 index 0000000..4ff7e6a --- /dev/null +++ b/SOURCES/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/SPECS/ltrace.spec b/SPECS/ltrace.spec index cc812b0..3bc0bd7 100644 --- a/SPECS/ltrace.spec +++ b/SPECS/ltrace.spec @@ -3,7 +3,7 @@ Summary: Tracks runtime library calls from dynamically linked executables Name: %{?scl_prefix}ltrace Version: 0.7.91 -Release: 1%{?dist} +Release: 2%{?dist} URL: http://ltrace.alioth.debian.org/ License: GPLv2+ Group: Development/Debuggers @@ -103,6 +103,9 @@ Patch25: ltrace-rh1307754.patch # GCC now warns (errors) on "tautological compares", and readdir_r is deprecated. Patch26: ltrace-0.7.91-tautology.patch +# gcc-9 fix. Avoid passing NULL as argument to %s +Patch27: ltrace-0.7.91-null.patch + # https://bugzilla.redhat.com/show_bug.cgi?id=1196697 Patch200: ltrace-0.7.91-XDG_CONFIG_DIRS.patch Patch201: ltrace-0.7.91-XDG_CONFIG_DIRS-2.patch @@ -157,6 +160,7 @@ execution of processes. %patch24 -p1 %patch25 -p1 %patch26 -p1 +%patch27 -p1 %patch200 -p1 %patch201 -p1 %patch202 -p1 @@ -189,6 +193,9 @@ echo ====================TESTING END===================== %{_datadir}/ltrace %changelog +* Wed Jan 8 2020 Jeff Law - 0.7.91-2 +- Avoid passing NULL as argument to %s in printf call + * Mon Aug 5 2019 DJ Delorie - 0.7.91-1 - Reset to -1 for devtoolset-9 (#1736671)