Skip to content

Fixes for memory leaks and corruptions

Robert Tiemann connman 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4wifi: Fix use-after-free when tethering is disabled.plugins/wifi.c+24 -300 replies
2/4wifi: Fix memory leak.plugins/wifi.c+3 -10 replies
3/4wifi: Fix indentation.plugins/wifi.c+5 -50 replies
4/4technology: Fix memory leak.src/technology.c+3 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Fixes for memory leaks and corruptions

I've noticed that the settings file gets corrupted when disabling wifi tethering. Wrong strings and/or binary junk are written to the file, preventing Connman from starting up the next time it is run.

I have tracked down the breaking commit (481d08f108) and was able to patch the problem. While at it, I found and patched two more memory leaks.

Robert Tiemann (4):
wifi: Fix use-after-free when tethering is disabled.
wifi: Fix memory leak.
wifi: Fix indentation.
technology: Fix memory leak.

 plugins/wifi.c   | 66 +++++++++++++++++++++++-------------------------
 src/technology.c |  4 ++-
 2 files changed, 34 insertions(+), 36 deletions(-)

--
2.34.1