Fixed infinite loop in svc_run() (bz 246677)

This commit is contained in:
Steve Dickson 2007-07-09 17:03:17 +00:00
parent 3d9be28ff2
commit 3ff2697d01
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,19 @@
--- libtirpc-0.1.7/src/svc_run.c.orig 2005-05-18 01:10:50.000000000 -0400
+++ libtirpc-0.1.7/src/svc_run.c 2007-07-09 12:52:23.000000000 -0400
@@ -51,14 +51,14 @@ svc_run()
struct timeval timeout;
extern rwlock_t svc_fd_lock;
- timeout.tv_sec = 30;
- timeout.tv_usec = 0;
for (;;) {
rwlock_rdlock(&svc_fd_lock);
readfds = svc_fdset;
cleanfds = svc_fdset;
rwlock_unlock(&svc_fd_lock);
+ timeout.tv_sec = 30;
+ timeout.tv_usec = 0;
switch (select(svc_maxfd+1, &readfds, NULL, NULL, &timeout)) {
case -1:
FD_ZERO(&readfds);

View File

@ -1,6 +1,6 @@
Name: libtirpc
Version: 0.1.7
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Transport Independent RPC Library
Group: System Environment/Libraries
License: GPL
@ -37,6 +37,7 @@ Patch4: libtirpc-0.1.7-ppc64.patch
Patch5: libtirpc-0.1.7-svcauthdestroy.patch
Patch6: libtirpc-0.1.7-xdr_bufferoverlow.patch
Patch7: libtirpc-0.1.7-bindresvport_ports.patch
Patch8: libtirpc-0.1.7-svc-run.patch
Patch100: libtirpc-0.1.7-compile.patch
@ -54,6 +55,7 @@ developing programs which use the tirpc library.
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch100 -p1
@ -133,6 +135,9 @@ rm -rf %{buildroot}
%{_includedir}/tirpc/un-namespace.h
%changelog
* Mon Jul 9 2007 <steved@redhat.com> 0.1.7-7
- Fixed infinite loop in svc_run() (bz 246677)
* Thu Apr 26 2007 <steved@redhat.com> 0.1.7-6
- Fixed potential buffer overflow in xdr_strings
- Added a optimization to bindresvport that allows more