3.0.x - rlm_linelog - problem escaping characters in octal format #578

Closed
nchaigne opened this Issue Apr 3, 2014 · 0 comments

Projects

None yet

1 participant

@nchaigne
Contributor
nchaigne commented Apr 3, 2014

There is a bug at line 179 of rlm_linelog.c (in branch 3.0.x):

        snprintf(out, outlen,  "\\%03o", *in);

Should be something like:

        snprintf(out, outlen,  "\\%03o", (unsigned char)*in);

Otherwise we get, for example, "\377\377" instead of "\303\250".

@alandekok alandekok closed this in 371c7e7 Apr 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment