Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:SLE-15-SP2:GA
avahi-glib2.33718
avahi-CVE-2023-1981.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File avahi-CVE-2023-1981.patch of Package avahi-glib2.33718
From a2696da2f2c50ac43b6c4903f72290d5c3fa9f6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com> Date: Thu, 17 Nov 2022 01:51:53 +0100 Subject: [PATCH] Emit error if requested service is not found It currently just crashes instead of replying with error. Check return value and emit error instead of passing NULL pointer to reply. Fixes #375 --- avahi-daemon/dbus-protocol.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff -urp avahi-0.7.orig/avahi-daemon/dbus-protocol.c avahi-0.7/avahi-daemon/dbus-protocol.c --- avahi-0.7.orig/avahi-daemon/dbus-protocol.c 2017-07-10 05:14:59.111370487 -0500 +++ avahi-0.7/avahi-daemon/dbus-protocol.c 2023-04-11 16:43:58.986382000 -0500 @@ -391,10 +391,14 @@ static DBusHandlerResult msg_server_impl } t = avahi_alternative_host_name(n); - avahi_dbus_respond_string(c, m, t); - avahi_free(t); - - return DBUS_HANDLER_RESULT_HANDLED; + if (t) { + avahi_dbus_respond_string(c, m, t); + avahi_free(t); + + return DBUS_HANDLER_RESULT_HANDLED; + } else { + return avahi_dbus_respond_error(c, m, AVAHI_ERR_NOT_FOUND, "Hostname not found"); + } } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "GetAlternativeServiceName")) { char *n, *t; @@ -405,10 +409,14 @@ static DBusHandlerResult msg_server_impl } t = avahi_alternative_service_name(n); - avahi_dbus_respond_string(c, m, t); - avahi_free(t); - - return DBUS_HANDLER_RESULT_HANDLED; + if (t) { + avahi_dbus_respond_string(c, m, t); + avahi_free(t); + + return DBUS_HANDLER_RESULT_HANDLED; + } else { + return avahi_dbus_respond_error(c, m, AVAHI_ERR_NOT_FOUND, "Service not found"); + } } else if (dbus_message_is_method_call(m, AVAHI_DBUS_INTERFACE_SERVER, "EntryGroupNew")) { Client *client; Only in avahi-0.7.orig/avahi-daemon: .dbus-protocol.c.swp
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