Bug 669757
Summary: | string index out of range error on full IPv6 address | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Jeff Bastian <jbastian> | ||||
Component: | system-config-bind | Assignee: | Jaroslav Reznik <jreznik> | ||||
Status: | CLOSED ERRATA | QA Contact: | Branislav Blaškovič <bblaskov> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 5.5 | CC: | azelinka, bblaskov, bernd.stramm, jreznik, rvokal | ||||
Target Milestone: | rc | Keywords: | Patch | ||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | system-config-bind-4.0.3-6.el5 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 625621 | Environment: | |||||
Last Closed: | 2013-01-08 07:16:58 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 625621 | ||||||
Bug Blocks: | 743405 | ||||||
Attachments: |
|
Description
Jeff Bastian
2011-01-14 16:24:10 UTC
Enabling debugging with the SCB_DEBUG=FRAME environment variable shows this with the 4444 removed (i.e., when it works correctly): # SCB_DEBUG=FRAME system-config-bind ... IPV6.py:171 (hex_out): hex_out: 11112222333300005555666677778888 IPV6.py:171 (hex_out): hex_out: initial zseq: [[12, 16]] IPV6.py:171 (hex_out): hex_out: longest: 0 IPV6.py:171 (hex_out): hex_out: start: 12 end: 16 IPV6.py:171 (hex_out): hex_out: output 1: 1111:2222:3333::5555:6666:7777:8888: IPV6.py:171 (hex_out): hex_out: trailing zeros? : 8888 ... If we add the 4444 back in, the initial zseq is empty as is everything else: # SCB_DEBUG=FRAME system-config-bind ... IPV6.py:171 (hex_out): hex_out: 11112222333344445555666677778888 IPV6.py:171 (hex_out): hex_out: initial zseq: [] IPV6.py:171 (hex_out): hex_out: longest: None IPV6.py:171 (hex_out): hex_out: start: None end: None IPV6.py:171 (hex_out): hex_out: output 1: Traceback (most recent call last): ... zseq must be "zero sequence". The code is expecting at least one field of 0s in the address. Indeed, if I change the zone file to specify a single 0 instead of the 4s, s-c-bind works okay: foo IN AAAA 1111:2222:3333:0:5555:6666:7777:8888 The code seems to be incorrectly assuming that all IPv6 addresses will have a zero sequence somewhere. Created attachment 473569 [details]
patch to handle IPv6 addresses without a zero-sequence
This patch fixes the problem for me.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0037.html |