summaryrefslogtreecommitdiff
path: root/media-video/pipewire/files/0.3.70/parser-check-pointer.patch
blob: 7409d83e7ebb661cd844c036aee20e699e367864 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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