eclipse-wakaama / wakaama

Eclipse Wakaama is a C implementation of the Open Mobile Alliance's LightWeight M2M protocol (LWM2M).
BSD 3-Clause "New" or "Revised" License
492 stars 373 forks source link

Wakaama logs arbitrary bytes to stdout #783

Open mlasch opened 1 month ago

mlasch commented 1 month ago

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

Examples: https://github.com/eclipse-wakaama/wakaama/blob/22bf6e1f1e99171e788aabbd08f4a21084a62085/core/packet.c#L494

https://github.com/eclipse-wakaama/wakaama/blob/22bf6e1f1e99171e788aabbd08f4a21084a62085/core/uri.c#L227

https://github.com/eclipse-wakaama/wakaama/blob/22bf6e1f1e99171e788aabbd08f4a21084a62085/data/json.c#L496

https://github.com/eclipse-wakaama/wakaama/blob/22bf6e1f1e99171e788aabbd08f4a21084a62085/data/senml_json.c#L612

We should implement a hexdump functionality for logging.