Add valgrind-3.11.0-fclose.patch
This commit is contained in:
parent
2279cbac9e
commit
b9152ccf60
21
valgrind-3.11.0-fclose.patch
Normal file
21
valgrind-3.11.0-fclose.patch
Normal file
@ -0,0 +1,21 @@
|
||||
commit 8c8306308e05e92de228de57e832c85fb976124b
|
||||
Author: florian <florian@a5019735-40e9-0310-863c-91ae7b9d1cf9>
|
||||
Date: Tue Jan 12 14:32:05 2016 +0000
|
||||
|
||||
VG_(fclose) ought to close the file, you silly. Fixes BZ #357887.
|
||||
|
||||
|
||||
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15755 a5019735-40e9-0310-863c-91ae7b9d1cf9
|
||||
|
||||
diff --git a/coregrind/m_libcprint.c b/coregrind/m_libcprint.c
|
||||
index 1283de5..ce2c038 100644
|
||||
--- a/coregrind/m_libcprint.c
|
||||
+++ b/coregrind/m_libcprint.c
|
||||
@@ -359,6 +359,7 @@ void VG_(fclose)( VgFile *fp )
|
||||
if (fp->num_chars)
|
||||
VG_(write)(fp->fd, fp->buf, fp->num_chars);
|
||||
|
||||
+ VG_(close)(fp->fd);
|
||||
VG_(free)(fp);
|
||||
}
|
||||
|
@ -82,6 +82,9 @@ Patch11: valgrind-3.11.0-pthread_barrier.patch
|
||||
# KDE#357833 - Valgrind is broken on recent linux kernel (RLIMIT_DATA)
|
||||
Patch12: valgrind-3.11.0-rlimit_data.patch
|
||||
|
||||
# KDE##357887 VG_(fclose) ought to close the file, you silly.
|
||||
Patch13: valgrind-3.11.0-fclose.patch
|
||||
|
||||
%if %{build_multilib}
|
||||
# Ensure glibc{,-devel} is installed for both multilib arches
|
||||
BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so
|
||||
@ -198,6 +201,7 @@ Valgrind User Manual for details.
|
||||
%patch10 -p1
|
||||
%patch11 -p1
|
||||
%patch12 -p1
|
||||
%patch13 -p1
|
||||
|
||||
%build
|
||||
# We need to use the software collection compiler and binutils if available.
|
||||
@ -375,6 +379,7 @@ echo ===============END TESTING===============
|
||||
%changelog
|
||||
* Wed Jan 20 2016 Mark Wielaard <mjw@redhat.com>
|
||||
- Add valgrind-3.11.0-rlimit_data.patch
|
||||
- Add valgrind-3.11.0-fclose.patch
|
||||
|
||||
* Tue Jan 19 2016 Mark Wielaard <mjw@redhat.com> - 3.11.0-7
|
||||
- Add valgrind-3.11.0-pthread_barrier.patch
|
||||
|
Loading…
Reference in New Issue
Block a user