public inbox for eudev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Marcus Folkesson <marcus.folkesson@gmail.com>
To: eudev@lists.gentoo.org
Cc: marcus.folkesson@gmail.com
Subject: [eudev] [PATCH] udev-event.c: do not assign s to address to pointer
Date: Sat,  2 Dec 2017 18:21:03 +0100	[thread overview]
Message-ID: <20171202172103.2355-1-marcus.folkesson@gmail.com> (raw)

Solve a bug that could result in really nasty behavior.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
---
 src/udev/udev-event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c
index 19079bf02..4120c04f2 100644
--- a/src/udev/udev-event.c
+++ b/src/udev/udev-event.c
@@ -201,7 +201,7 @@ subst:
                         _s = s;
                         _l = l;
                         /* temporarily use sbuf */
-                        s = &sbuf;
+                        s = sbuf;
                         l = UTIL_PATH_SIZE;
                 }
 
-- 
2.15.0



             reply	other threads:[~2017-12-02 17:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-02 17:21 Marcus Folkesson [this message]
2017-12-04 12:47 ` [eudev] [PATCH] udev-event.c: do not assign s to address to pointer Anthony G. Basile
2017-12-04 12:59   ` Marcus Folkesson

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=20171202172103.2355-1-marcus.folkesson@gmail.com \
    --to=marcus.folkesson@gmail.com \
    --cc=eudev@lists.gentoo.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