Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: iwd@lists.01.org
Subject: Re: [PATCH v4] knownnetworks: sanitize known_network.freq on load
Date: Fri, 29 Jan 2021 17:49:21 -0600	[thread overview]
Message-ID: <4bcbe596-91fb-544e-dd4a-2ef60fd0e942@gmail.com> (raw)
In-Reply-To: <20210129234726.132679-1-prestwoj@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 884 bytes --]

Hi James,

On 1/29/21 5:47 PM, James Prestwood wrote:
> An invalid known_network.freq file containing several UUID
> groups which have the same 'name' key results in memory leaks
> in IWD. This is because the file is loaded and the group's
> are iterated without detecting duplicates. This leads to the
> same network_info's known_frequencies being set/overridden
> multiple times.
> 
> To fix this we just check if the network_info already has a
> UUID set. If so remove the stale entry.
> 
> There may be other old, invalid, or stale entries from previous
> versions of IWD, or a user misconfiguring the file. These will
> now also be removed during load.
> ---
>   src/knownnetworks.c | 25 +++++++++++++++++--------
>   1 file changed, 17 insertions(+), 8 deletions(-)
> 
> v4:
>   * Fixed a few memory leak issues
> 

Applied, thanks.

Regards,
-Denis

      reply	other threads:[~2021-01-29 23:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-29 23:47 [PATCH v4] knownnetworks: sanitize known_network.freq on load James Prestwood
2021-01-29 23:49 ` Denis Kenzior [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4bcbe596-91fb-544e-dd4a-2ef60fd0e942@gmail.com \
    --to=denkenz@gmail.com \
    --cc=iwd@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox