Added file
This commit is contained in:
parent
8f1c9b0262
commit
bc8578ac07
21
media-video/pipewire/files/0.3.70/parser-check-pointer.patch
Normal file
21
media-video/pipewire/files/0.3.70/parser-check-pointer.patch
Normal file
@ -0,0 +1,21 @@
|
||||
https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/83d2e85f490ea97e4ae94b95f20dd06566a14c31
|
||||
|
||||
From 83d2e85f490ea97e4ae94b95f20dd06566a14c31 Mon Sep 17 00:00:00 2001
|
||||
From: Wim Taymans <wtaymans@redhat.com>
|
||||
Date: Thu, 20 Apr 2023 12:32:07 +0200
|
||||
Subject: [PATCH] parser: add extra check to make coverity happy
|
||||
|
||||
Fixes !1473
|
||||
--- a/spa/include/spa/pod/parser.h
|
||||
+++ b/spa/include/spa/pod/parser.h
|
||||
@@ -455,7 +455,7 @@ static inline int spa_pod_parser_getv(struct spa_pod_parser *parser, va_list arg
|
||||
const struct spa_pod *pod = NULL;
|
||||
const char *format;
|
||||
|
||||
- if (ftype == SPA_TYPE_Object) {
|
||||
+ if (f && ftype == SPA_TYPE_Object) {
|
||||
uint32_t key = va_arg(args, uint32_t);
|
||||
const struct spa_pod_object *object;
|
||||
|
||||
--
|
||||
GitLab
|
Loading…
Reference in New Issue
Block a user