mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-02 06:46:36 -04:00
security: add missing NULL check after pw_properties_new in zeroconf
pw_properties_new can return NULL under OOM. The result was used directly without a check, leading to a NULL pointer dereference. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
e1f4c441f4
commit
912f7f5c64
1 changed files with 2 additions and 0 deletions
|
|
@ -241,6 +241,8 @@ static void fill_service_data(struct module_zeroconf_publish_data *d, struct ser
|
|||
s->cm = dev_info.map;
|
||||
|
||||
s->props = pw_properties_new(NULL, NULL);
|
||||
if (s->props == NULL)
|
||||
return;
|
||||
|
||||
txt_record_server_data(s->userdata->manager->info, s->props);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue