This commit is contained in:
parent
a06d145de6
commit
b094a811d3
11
systemtap-parameter-bound-check.diff
Normal file
11
systemtap-parameter-bound-check.diff
Normal file
@ -0,0 +1,11 @@
|
||||
--- translate.cxx-dist 2008-09-06 16:27:03.000000000 +0200
|
||||
+++ translate.cxx 2008-11-21 14:19:52.000000000 +0100
|
||||
@@ -4193,7 +4193,7 @@ c_unparser::visit_print_format (print_fo
|
||||
/* The type of the %m argument is 'char*'. */
|
||||
if (components[i].type == print_format::conv_memory)
|
||||
o->line() << ", (char*)(uintptr_t)" << tmp[arg_ix++].value();
|
||||
- else
|
||||
+ else if (arg_ix < (int) tmp.size())
|
||||
o->line() << ", " << tmp[arg_ix++].value();
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 21 14:09:21 CET 2008 - tiwai@suse.de
|
||||
|
||||
- Add the bound check of parameters to fix segfault (bnc#447551)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 4 13:57:24 CET 2008 - tiwai@suse.de
|
||||
|
||||
|
@ -25,7 +25,7 @@ BuildRequires: latex2html
|
||||
%define package_version 20080906
|
||||
License: GPL v2 or later
|
||||
Version: 0.7.1
|
||||
Release: 24
|
||||
Release: 25
|
||||
Summary: Instrumentation System
|
||||
Group: Development/Tools/Debuggers
|
||||
Url: http://sourceware.org/systemtap/
|
||||
@ -35,6 +35,7 @@ Source: ftp://sources.redhat.com/pub/systemtap/snapshots/systemtap-%{pac
|
||||
Patch: systemtap-docdir-fix.diff
|
||||
Patch1: systemtap-old-autoconf-fix.diff
|
||||
Patch2: stap-fix-dump_unwindsyms.patch
|
||||
Patch3: systemtap-parameter-bound-check.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -59,6 +60,7 @@ Authors:
|
||||
%patch1
|
||||
%endif
|
||||
%patch2 -p1
|
||||
%patch3
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
@ -83,6 +85,8 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
%dir %attr(0755,root,root) /var/cache/systemtap
|
||||
|
||||
%changelog
|
||||
* Fri Nov 21 2008 tiwai@suse.de
|
||||
- Add the bound check of parameters to fix segfault (bnc#447551)
|
||||
* Tue Nov 04 2008 tiwai@suse.de
|
||||
- Fix systemtap assertion with CONFIG_RELOCATABLE (bnc#440351)
|
||||
* Thu Sep 11 2008 tiwai@suse.de
|
||||
|
Loading…
Reference in New Issue
Block a user