FIWARE / context.Orion-LD

Context Broker and CEF building block for context data management which supports both the NGSI-LD and the NGSI-v2 APIs
https://www.etsi.org/deliver/etsi_gs/CIM/001_099/009/01.06.01_60/gs_CIM009v010601p.pdf
GNU Affero General Public License v3.0
50 stars 41 forks source link

Fix: Variable overflow in `src/lib/logMsg/logMsg.cpp` #1336

Open mapedraza opened 1 year ago

mapedraza commented 1 year ago

A variable overflow in src/lib/logMsg/logMsg.cpp was detected in the original Orion repo. This bug was causing a failure in test empty_maps_in_metrics when running Valgrind. It was particularly hard to debug and identify.

The code affected is here: https://github.com/FIWARE/context.Orion-LD/blob/18d8e4fd5d8a88f795aac6942bb74b6aab4917b5/src/lib/logMsg/logMsg.cpp#L1534-L1548

This was fixed in the original Orion repo in the following commit: https://github.com/telefonicaid/fiware-orion/pull/3880/commits/c259d2333d0f2903216af1fb812f02d6b7d95974

kzangeli commented 1 year ago

ok, I will take a look at that. I don't have any valgrind errors though, in Orion-LD.

Thanks !