Gentoo Archives: eudev

From: Marcus Folkesson <marcus.folkesson@×××××.com>
To: "Anthony G. Basile" <basile@××××××××××.net>
Cc: eudev@l.g.o
Subject: Re: [eudev] [PATCH] udev-event.c: do not assign s to address to pointer
Date: Mon, 04 Dec 2017 12:59:46
Message-Id: 20171204125935.GA19650@gmail.com
In Reply to: Re: [eudev] [PATCH] udev-event.c: do not assign s to address to pointer by "Anthony G. Basile"
1 Hi,
2
3 On Mon, Dec 04, 2017 at 07:47:46AM -0500, Anthony G. Basile wrote:
4 > On 12/2/17 12:21 PM, Marcus Folkesson wrote:
5 > > Solve a bug that could result in really nasty behavior.
6 > >
7 > > Signed-off-by: Marcus Folkesson <marcus.folkesson@×××××.com>
8 > > ---
9 > > src/udev/udev-event.c | 2 +-
10 > > 1 file changed, 1 insertion(+), 1 deletion(-)
11 > >
12 > > diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c
13 > > index 19079bf02..4120c04f2 100644
14 > > --- a/src/udev/udev-event.c
15 > > +++ b/src/udev/udev-event.c
16 > > @@ -201,7 +201,7 @@ subst:
17 > > _s = s;
18 > > _l = l;
19 > > /* temporarily use sbuf */
20 > > - s = &sbuf;
21 > > + s = sbuf;
22 > > l = UTIL_PATH_SIZE;
23 > > }
24 > >
25 >
26 >
27 > Do you know if this was caught upstream?
28 >
29
30 It is not, 's' is later used in strpcpy() where memcpy() operates
31 directly on it.
32
33 Best regards
34 Marcus Folkesson

Attachments

File name MIME type
signature.asc application/pgp-signature