Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

nchaigne opened this issue Apr 3, 2014 · 0 comments

Comments

@nchaigne
Copy link
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 added a commit that referenced this issue Apr 3, 2014
alandekok added a commit that referenced this issue Apr 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant