Oddity in regex

Arran Cudbard-Bell a.cudbardb at freeradius.org
Mon Sep 1 15:05:01 CEST 2014


On 31 Aug 2014, at 17:32, Alan DeKok <aland at deployingradius.com> wrote:

> Stefan Paetow wrote:
>> I have two servers, one here (in my office, with CentOS 6.5) and one at
>> another facility (with RHEL 6.5). Both are running FreeRADIUS 3.0.4 rc 1
>> from what I can establish.
> 
>  Arran has pushed a fix which should help.

The string used the the value comparisons is a verbatim copy of the buffer of the attribute used in the regex.

Not currently possible to do this for xlat, as the code isn't \0 safe.

Need to audit paircmp_value and paircmp_op for \0 safety, but as you're probably not matching on binary data, it won't matter.

Means you don't have to do contorted escaping. Just assume the raw value will get passed unmolested to the regex functions.


Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS development team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140901/408fe33e/attachment-0001.pgp>


More information about the Freeradius-Users mailing list