mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
media-session: avoid strcmp on unterminated string
The string might not be 0 terminated so use the length to set a limit for strcmp.
This commit is contained in:
parent
4ab4c57a55
commit
5629885e41
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ static void on_notify_events(void *data, int fd, uint32_t mask)
|
|||
event = (const struct inotify_event *) p;
|
||||
|
||||
if ((event->mask & IN_ATTRIB)) {
|
||||
if (strcmp(event->name, SEQ_NAME) != 0)
|
||||
if (strncmp(event->name, SEQ_NAME, event->len) != 0)
|
||||
continue;
|
||||
if (impl->proxy == NULL &&
|
||||
check_access(impl) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue