regex matching can be convinced to be TRUE if you're insistive enough?

Stefan Winter stefan.winter at restena.lu
Thu May 26 13:41:31 CEST 2011


Hi,

right, the false positive matches for the regex are now gone, thanks!

However, looks like the regex comparison stops after 1023 Bytes, if I
actually put a matching pattern beyond that mark, the result keeps being
FALSE.

Any chance to allow for a longer string?

The concrete use case I have is that group membership attributes are
pulled via ldap.attrmap, and if a user is in many groups, checking the
group membership with [*] and a regex can easily go beyond 1023 Bytes.

Greetings,

Stefan Winter

Am 26.05.2011 10:55, schrieb Alan DeKok:
> Stefan Winter wrote:
>> the bug isn't triggered exclusively by string length. It also must have
>> to do with number of attributes being globbed together via [*]. To
>> illustrate:
>   Fixed && pushed to git.
>
>   The issue was that [*] wasn't terminating the string with a final '\0'
>
>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html


-- 
Stefan WINTER
Ingenieur de Recherche
Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et de la Recherche
6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg

Tel: +352 424409 1
Fax: +352 422473


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20110526/05e805bf/attachment.pgp>


More information about the Freeradius-Devel mailing list