Bug 1068795
Summary: | rlm_perl attribute values truncated | |||
---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | John Dennis <jdennis> | |
Component: | freeradius | Assignee: | John Dennis <jdennis> | |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 20 | CC: | jdennis, lemenkov, nikolai.kondrashov | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | freeradius-3.0.1-4.fc20 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1068798 (view as bug list) | Environment: | ||
Last Closed: | 2014-03-09 04:37:21 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1068798 |
Description
John Dennis
2014-02-21 22:07:09 UTC
in src/lib/print.c the vp_prints_value function is defined like this: size_t vp_prints_value(char *out, size_t outlen, VALUE_PAIR const *vp, int8_t quote) which at some point does this: return fr_print_string(vp->vp_strvalue, vp->length, out, sizeof(out)); Note the length field of fr_print_string is passed as sizeof(out), but out is a pointer, on a system whose pointers are 4 bytes the maximum string emitted will be 4 characters. The correct length to pass is the outlen parameter. freeradius-3.0.1-3.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/freeradius-3.0.1-3.fc20 Package freeradius-3.0.1-3.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing freeradius-3.0.1-3.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-2964/freeradius-3.0.1-3.fc20 then log in and leave karma (feedback). freeradius-3.0.1-4.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/freeradius-3.0.1-4.fc20 freeradius-3.0.1-4.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |