Bug 1311916
Summary: | line with more then 2048 character is ignored | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Petr Sklenar <psklenar> | ||||||||
Component: | tcp_wrappers | Assignee: | Jakub Jelen <jjelen> | ||||||||
Status: | CLOSED WONTFIX | QA Contact: | qe-baseos-daemons | ||||||||
Severity: | low | Docs Contact: | |||||||||
Priority: | low | ||||||||||
Version: | 6.8 | CC: | huzaifas, nmavrogi, plautrba, pvrabec | ||||||||
Target Milestone: | rc | Keywords: | Reopened, Security | ||||||||
Target Release: | --- | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2016-05-24 12:34:04 UTC | Type: | Bug | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Petr Sklenar
2016-02-25 10:19:56 UTC
Created attachment 1130464 [details]
etc hosts with more then 2048char on one line
Created attachment 1130465 [details]
etc hosts with less then 2048char on one line
For the reference: Debian bug [1]: > I do not know, but I do not look forward to modify mature security sensitive code which I do not know well. > Marco CentOS bug [2]: untouched Fixing it might take two ways: * moving hard limit which just moves the issue further * significantly rewrite xgets and/or the callee function to accommodate elastic buffer. Might introduce other bugs. As soon as I will have some prototype, I will update the bug. [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648181 [2] https://bugs.centos.org/view.php?id=10017 Created attachment 1130854 [details] proposed patch I put together patch providing flexible buffer if we overrun the static one. For the most of the cases, the static one should be used. If we encounter longer line, we allocate longer buffer. Basic testing worked for me. Please consider if we really want this in RHEL6 and request ACKs. Here is scratch build for x86_64: http://brewweb.devel.redhat.com/brew/taskinfo?taskID=10566822 Development Management has reviewed and declined this request. You may appeal this decision by reopening this request. This is a limitation of the software but hardly a security issue. |