commit | ffbd48e2c11c3129ae4549edfb717e9bcf8932d9 | [log] [tgz] |
---|---|---|
author | Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no> | Thu Dec 12 11:51:00 2019 +0100 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri Dec 20 08:49:01 2019 -0500 |
tree | fa37c95291ccaa51a4bf5424588c985b01914a04 | |
parent | ee14a49e9119a4a9728eb24957f00cd98478518e [diff] |
logging: Fix false strdup buffer freeing Algorithm for freeing strdup buffers was only checking if argument matches address within strdup buffer pool and was attempting freeing even if format specifier was different than string. Added fix where also format specifier is checked. Extended logger test to verify correctness of function which searches for string format specifiers within a string. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>