Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 596063 Details for
Bug 727445
tcp_wrapper related daemons eat 100% CPU when a line of hosts.allow is exceeds 2048byte
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch from CentOS
tcp_wrappers-7.6-fix-xgets-infinite-loop.patch (text/plain), 1.22 KB, created by
Bryan Mason
on 2012-07-03 18:13:56 UTC
(
hide
)
Description:
Patch from CentOS
Filename:
MIME Type:
Creator:
Bryan Mason
Created:
2012-07-03 18:13:56 UTC
Size:
1.22 KB
patch
obsolete
>--- tcp_wrappers_7.6/misc.c.fix-xgets-infinite-loop 2012-04-22 07:51:40.000000000 +0900 >+++ tcp_wrappers_7.6/misc.c 2012-04-22 07:59:38.000000000 +0900 >@@ -32,20 +32,32 @@ > { > int got; > char *start = ptr; >+ int c, last; > > while (fgets(ptr, len, fp)) { > got = strlen(ptr); >- if (got >= 1 && ptr[got - 1] == '\n') { >- tcpd_context.line++; >- if (got >= 2 && ptr[got - 2] == '\\') { >- got -= 2; >- } else { >- return (start); >- } >- } >- ptr += got; >- len -= got; >- ptr[0] = 0; >+ if (got >= 1 && ptr[got - 1] == '\n') { >+ tcpd_context.line++; >+ if (got >= 2 && ptr[got - 2] == '\\') { >+ got -= 2; >+ } else { >+ return (start); >+ } >+ ptr += got; >+ len -= got; >+ ptr[0] = 0; >+ } else { >+ /* over buffer len */ >+ last = (got >= 1) ? ptr[got - 1] : '\0'; >+ while ((c = fgetc(fp)) != EOF) { >+ if (c == '\n') { >+ tcpd_context.line++; >+ if (last != '\\') >+ return (start); >+ } >+ last = c; >+ } >+ } > } > return (ptr > start ? start : 0); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 727445
:
516268
|
593569
| 596063