Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
systemd.4328
0003-udev-event-explicitly-don-t-read-from-inva...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-udev-event-explicitly-don-t-read-from-invalid-fd.patch of Package systemd.4328
From 3f796750b192e62701e91a95f85389f876d1059b Mon Sep 17 00:00:00 2001 From: Tom Gundersen <teg@jklm.no> Date: Wed, 17 Sep 2014 21:44:56 +0200 Subject: [PATCH] udev: event - explicitly don't read() from invalid fd This fixes CID #1237641. --- src/udev/udev-event.c | 3 +++ 1 file changed, 3 insertions(+) diff --git src/udev/udev-event.c src/udev/udev-event.c index 6b8b5a8..c8b1420 100644 --- src/udev/udev-event.c +++ src/udev/udev-event.c @@ -494,6 +494,9 @@ static void spawn_read(struct udev_event *event, for (i = 0; i < fdcount; i++) { int *fd = (int *)ev[i].data.ptr; + if (*fd < 0) + continue; + if (ev[i].events & EPOLLIN) { ssize_t count; char buf[4096]; -- 1.7.9.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor