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

Wakaama logs arbitrary bytes to stdout #783

Open
mlasch opened this issue May 30, 2024 · 0 comments
Open

Wakaama logs arbitrary bytes to stdout #783

mlasch opened this issue May 30, 2024 · 0 comments

Comments

@mlasch
Copy link
Contributor

mlasch commented May 30, 2024

When logging is enabled, Wakaama sends arbitrary bytes to stdout.

Examples:

LOG_ARG("Payload: %.*s", (int)message->payload_len, STR_NULL2EMPTY(message->payload));

LOG_ARG("buffer_len: %zu, buffer: \"%.*s\"", buffer_len, (int)buffer_len, STR_NULL2EMPTY(buffer));

LOG_ARG("bufferLen: %zd, buffer: \"%.*s\"", bufferLen, (int)bufferLen, STR_NULL2EMPTY((char *)buffer));

LOG_ARG("bufferLen: %zd, buffer: \"%.*s\"", bufferLen, (int)bufferLen, STR_NULL2EMPTY((char *)buffer));

We should implement a hexdump functionality for logging.

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