Task #78165 - added.err
back to task #78165download
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/tools/spa-json-dump.c: scope_hint: In function ‘process_json’
pipewire-1.5.81/spa/include/spa/debug/file.h:56:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
# 56 | ({ \
# | ^
pipewire-1.5.81/spa/tools/spa-json-dump.c:206:25: note: in expansion of macro ‘spa_debug_file_error_location’
# 206 | spa_debug_file_error_location(stderr, &loc,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 54|
# 55| #define spa_debug_file_error_location(f,loc,fmt,...) \
# 56|-> ({ \
# 57| struct spa_debug_file_ctx c = SPA_DEBUG_FILE_INIT(f); \
# 58| if (fmt) spa_debugc(&c.ctx, fmt, __VA_ARGS__); \
Error: GCC_ANALYZER_WARNING (CWE-476):
pipewire-1.5.81/spa/include/spa/pod/body.h:157:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘body’
pipewire-1.5.81/src/examples/audio-capture.c:81:1: enter_function: entry to ‘on_stream_param_changed’
pipewire-1.5.81/src/examples/audio-capture.c:98:9: call_function: calling ‘spa_format_audio_raw_parse’ from ‘on_stream_param_changed’
# 155| /* TODO this is wrong per C standard, but if it breaks so does the Linux kernel. */
# 156| SPA_BARRIER;
# 157|-> memcpy(value, body, sizeof *value);
# 158| SPA_BARRIER;
# 159| return 0;
Error: GCC_ANALYZER_WARNING (CWE-476):
pipewire-1.5.81/spa/include/spa/pod/body.h:172:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘body’
pipewire-1.5.81/src/examples/audio-capture.c:81:1: enter_function: entry to ‘on_stream_param_changed’
pipewire-1.5.81/src/examples/audio-capture.c:98:9: call_function: calling ‘spa_format_audio_raw_parse’ from ‘on_stream_param_changed’
# 170| return -EINVAL;
# 171| SPA_BARRIER;
# 172|-> memcpy(value, body, sizeof *value);
# 173| SPA_BARRIER;
# 174| return 0;
Error: GCC_ANALYZER_WARNING (CWE-476):
pipewire-1.5.81/spa/include/spa/pod/body.h:187:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘body’
pipewire-1.5.81/src/examples/audio-capture.c:81:1: enter_function: entry to ‘on_stream_param_changed’
pipewire-1.5.81/src/examples/audio-capture.c:98:9: call_function: calling ‘spa_format_audio_raw_parse’ from ‘on_stream_param_changed’
# 185| return -EINVAL;
# 186| SPA_BARRIER;
# 187|-> memcpy(value, body, sizeof *value);
# 188| SPA_BARRIER;
# 189| return 0;
Error: GCC_ANALYZER_WARNING (CWE-476):
pipewire-1.5.81/spa/include/spa/pod/body.h:267:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘body’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1909:12: enter_function: entry to ‘security_context_demarshal_create’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1919:13: call_function: inlined call to ‘spa_pod_parser_push_struct’ from ‘security_context_demarshal_create’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1919:13: call_function: inlined call to ‘spa_pod_parser_push_struct’ from ‘security_context_demarshal_create’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1919:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1921:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1921:13: call_function: calling ‘spa_pod_parser_get’ from ‘security_context_demarshal_create’
# 265| return -EINVAL;
# 266| SPA_BARRIER;
# 267|-> memcpy(value, body, sizeof *value);
# 268| SPA_BARRIER;
# 269| return 0;
Error: GCC_ANALYZER_WARNING (CWE-476):
pipewire-1.5.81/spa/include/spa/pod/body.h:386:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pod’
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:604:6: enter_function: entry to ‘update_object_info’
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:607:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:608:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:608:17: call_function: calling ‘update_device_info’ from ‘update_object_info’
# 384| SPA_API_POD_BODY int spa_pod_is_object(const struct spa_pod *pod)
# 385| {
# 386|-> return SPA_POD_CHECK(pod, SPA_TYPE_Object, sizeof(struct spa_pod_object_body));
# 387| }
# 388| SPA_API_POD_BODY int spa_pod_body_get_object(const struct spa_pod *pod, const void *body,
Error: GCC_ANALYZER_WARNING (CWE-476):
pipewire-1.5.81/spa/include/spa/pod/builder.h:101:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pod’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:123:12: enter_function: entry to ‘method_subscribe_params’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:132:21: branch_true: following ‘true’ branch (when ‘i < n_ids’)...
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:133:42: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:136:17: call_function: calling ‘method_enum_params’ from ‘method_subscribe_params’
# 99| if (offset + UINT64_C(8) <= size) {
# 100| struct spa_pod *pod = SPA_PTROFF(builder->data, offset, struct spa_pod);
# 101|-> if (offset + (uint64_t)SPA_POD_SIZE(pod) <= size &&
# 102| SPA_POD_IS_VALID(pod))
# 103| return pod;
Error: GCC_ANALYZER_WARNING (CWE-686):
pipewire-1.5.81/spa/include/spa/pod/builder.h:636:25: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘uint32_t’ {{aka ‘unsigned int’}} but received ‘char (*)[2]’ for variadic argument 1 of ‘args’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1889:12: enter_function: entry to ‘security_context_marshal_create’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1899:9: call_function: calling ‘spa_pod_builder_add’ from ‘security_context_marshal_create’ with 5 variadic arguments
# 634| switch (ftype) {
# 635| case SPA_TYPE_Object:
# 636|-> key = va_arg(args, uint32_t);
# 637| if (key == 0)
# 638| goto exit;
Error: GCC_ANALYZER_WARNING (CWE-686):
pipewire-1.5.81/spa/include/spa/pod/builder.h:645:25: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘uint32_t’ {{aka ‘unsigned int’}} but received ‘char (*)[2]’ for variadic argument 1 of ‘args’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1889:12: enter_function: entry to ‘security_context_marshal_create’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1899:9: call_function: calling ‘spa_pod_builder_add’ from ‘security_context_marshal_create’ with 5 variadic arguments
# 643| break;
# 644| case SPA_TYPE_Sequence:
# 645|-> offset = va_arg(args, uint32_t);
# 646| type = va_arg(args, uint32_t);
# 647| if (type == 0)
Error: GCC_ANALYZER_WARNING (CWE-686):
pipewire-1.5.81/spa/include/spa/pod/builder.h:646:25: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘uint32_t’ {{aka ‘unsigned int’}} but received ‘char (*)[2]’ for variadic argument 2 of ‘args’
pipewire-1.5.81/spa/plugins/control/mixer.c:294:12: enter_function: entry to ‘port_enum_formats’
pipewire-1.5.81/spa/plugins/control/mixer.c:301:26: call_function: calling ‘spa_pod_builder_push_object’ from ‘port_enum_formats’
pipewire-1.5.81/spa/plugins/control/mixer.c:301:26: return_function: returning to ‘port_enum_formats’ from ‘spa_pod_builder_push_object’
pipewire-1.5.81/spa/plugins/control/mixer.c:301:26: call_function: calling ‘spa_pod_builder_add’ from ‘port_enum_formats’ with 7 variadic arguments
# 644| case SPA_TYPE_Sequence:
# 645| offset = va_arg(args, uint32_t);
# 646|-> type = va_arg(args, uint32_t);
# 647| if (type == 0)
# 648| goto exit;
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/include/spa/param/format-utils.h:8: included_from: Included from here.
pipewire-1.5.81/spa/include/spa/debug/format.h:15: included_from: Included from here.
pipewire-1.5.81/spa/include/spa/debug/file.h:16: included_from: Included from here.
pipewire-1.5.81/spa/include/spa/pod/parser.h: scope_hint: In function ‘spa_pod_parser_getv’
pipewire-1.5.81/spa/include/spa/pod/parser.h:577:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
# 577 | ({ \
# | ^
pipewire-1.5.81/spa/include/spa/pod/parser.h:827:21: note: in expansion of macro ‘SPA_POD_PARSER_COLLECT_BODY’
# 827 | if (SPA_POD_PARSER_COLLECT_BODY(&pod, body, *format, args) >= 0) {
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 575|
# 576| #define SPA_POD_PARSER_COLLECT_BODY(_pod,_body,_type,args) \
# 577|-> ({ \
# 578| int res = 0; \
# 579| struct spa_pod_choice choice; \
Error: GCC_ANALYZER_WARNING (CWE-686):
pipewire-1.5.81/spa/include/spa/pod/parser.h:803:34: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘uint32_t’ {{aka ‘unsigned int’}} but received ‘char (*)[2]’ for variadic argument 1 of ‘args’
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:206:12: enter_function: entry to ‘metadata_demarshal_property’
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:209:16: call_function: inlined call to ‘spa_pod_parser_push_struct’ from ‘metadata_demarshal_property’
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:209:16: call_function: inlined call to ‘spa_pod_parser_push_struct’ from ‘metadata_demarshal_property’
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:209:16: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:209:16: branch_true: ...to here
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:209:16: call_function: calling ‘spa_pod_parser_get’ from ‘metadata_demarshal_property’ with 9 variadic arguments
# 801|
# 802| if (f->pod.type == SPA_TYPE_Object) {
# 803|-> uint32_t key = va_arg(args, uint32_t), *flags = NULL;
# 804|
# 805| if (key == 0)
Error: GCC_ANALYZER_WARNING (CWE-686):
pipewire-1.5.81/spa/include/spa/pod/parser.h:818:21: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘const char *’ but received ‘int’ for variadic argument 1 of ‘args’
pipewire-1.5.81/spa/tools/spa-inspect.c:37:13: enter_function: entry to ‘print_param’
pipewire-1.5.81/spa/tools/spa-inspect.c:44:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/tools/spa-inspect.c:45:25: call_function: inlined call to ‘spa_debug_format’ from ‘print_param’
# 816| }
# 817|
# 818|-> if ((format = va_arg(args, char *)) == NULL)
# 819| break;
# 820|
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/include/spa/param/format-utils.h: scope_hint: In function ‘spa_format_parse’
pipewire-1.5.81/spa/include/spa/pod/parser.h:876:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
# 876 | ({ \
# | ^
pipewire-1.5.81/spa/include/spa/pod/parser.h:901:9: note: in expansion of macro ‘spa_pod_parser_get_object’
# 901 | spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__); \
# | ^~~~~~~~~~~~~~~~~~~~~~~~~
pipewire-1.5.81/spa/include/spa/pod/parser.h:905:9: note: in expansion of macro ‘spa_pod_body_parse_object’
# 905 | spa_pod_body_parse_object(pod,SPA_POD_BODY_CONST(pod),type,id,##__VA_ARGS__)
# | ^~~~~~~~~~~~~~~~~~~~~~~~~
pipewire-1.5.81/spa/include/spa/param/format-utils.h:32:16: note: in expansion of macro ‘spa_pod_parse_object’
# 32 | return spa_pod_parse_object(format,
# | ^~~~~~~~~~~~~~~~~~~~
# 874|
# 875| #define spa_pod_parser_get_object(p,type,id,...) \
# 876|-> ({ \
# 877| struct spa_pod_frame _f; \
# 878| int _res; \
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/include/spa/pod/parser.h:898:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
# 898 | ({ \
# | ^
pipewire-1.5.81/spa/include/spa/pod/parser.h:905:9: note: in expansion of macro ‘spa_pod_body_parse_object’
# 905 | spa_pod_body_parse_object(pod,SPA_POD_BODY_CONST(pod),type,id,##__VA_ARGS__)
# | ^~~~~~~~~~~~~~~~~~~~~~~~~
pipewire-1.5.81/spa/include/spa/param/format-utils.h:32:16: note: in expansion of macro ‘spa_pod_parse_object’
# 32 | return spa_pod_parse_object(format,
# | ^~~~~~~~~~~~~~~~~~~~
# 896|
# 897| #define spa_pod_body_parse_object(pod,body,type,id,...) \
# 898|-> ({ \
# 899| struct spa_pod_parser _p; \
# 900| spa_pod_parser_init_pod_body(&_p, pod, body); \
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/include/spa/support/loop.h:539:16: warning[-Wanalyzer-malloc-leak]: leak of ‘queue’
pipewire-1.5.81/src/pipewire/timer-queue.c:73:24: enter_function: entry to ‘pw_timer_queue_new’
pipewire-1.5.81/src/pipewire/timer-queue.c:78:17: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/timer-queue.c:79:12: branch_false: following ‘false’ branch (when ‘queue’ is non-NULL)...
pipewire-1.5.81/src/pipewire/timer-queue.c:82:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/timer-queue.c:83:24: call_function: inlined call to ‘pw_loop_add_timer’ from ‘pw_timer_queue_new’
# 537| spa_loop_utils_add_timer(struct spa_loop_utils *object, spa_source_timer_func_t func, void *data)
# 538| {
# 539|-> return spa_api_method_r(struct spa_source *, NULL,
# 540| spa_loop_utils, &object->iface, add_timer, 0, func, data);
# 541| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/include/spa/support/loop.h:546: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 544| struct timespec *interval, bool absolute)
# 545| {
# 546|-> return spa_api_method_r(int, -ENOTSUP,
# 547| spa_loop_utils, &object->iface, update_timer, 0, source,
# 548| value, interval, absolute);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/include/spa/support/system.h:185:16: warning[-Wanalyzer-malloc-leak]: leak of ‘get_source(object)’
pipewire-1.5.81/spa/plugins/support/loop.c:1340:1: enter_function: entry to ‘impl_init’
pipewire-1.5.81/spa/plugins/support/loop.c:1352:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1353:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1353:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1355:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1385:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1386:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1386:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1387:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1390:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1391:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1393:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1394:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1394:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1396:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1396:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1397:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1397:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1398:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1402:24: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.5.81/spa/plugins/support/loop.c:1402:24: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/support/loop.c:1404:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1409:20: call_function: inlined call to ‘spa_system_pollfd_create’ from ‘impl_init’
pipewire-1.5.81/spa/plugins/support/loop.c:1409:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1414:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1420:24: call_function: calling ‘loop_add_event’ from ‘impl_init’
# 183| SPA_API_SYSTEM int spa_system_eventfd_create(struct spa_system *object, int flags)
# 184| {
# 185|-> return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, eventfd_create, 0, flags);
# 186| }
# 187| SPA_API_SYSTEM int spa_system_eventfd_write(struct spa_system *object, int fd, uint64_t count)
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/include/spa/utils/json-core.h: scope_hint: In function ‘spa_json_next’
pipewire-1.5.81/spa/include/spa/utils/defs.h:83:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
# 83 | ({ \
# | ^
pipewire-1.5.81/spa/include/spa/utils/defs.h:91:81: note: in expansion of macro ‘SPA_FLAG_CLEAR’
# 91 | #define SPA_FLAG_UPDATE(field,flag,val) ((val) ? SPA_FLAG_SET((field),(flag)) : SPA_FLAG_CLEAR((field),(flag)))
# | ^~~~~~~~~~~~~~
pipewire-1.5.81/spa/include/spa/utils/json-core.h:142:41: note: in expansion of macro ‘SPA_FLAG_UPDATE’
# 142 | SPA_FLAG_UPDATE(flag, __KEY_FLAG, !(flag & __KEY_FLAG));
# | ^~~~~~~~~~~~~~~
# 81| #define SPA_FLAG_SET(field,flag) ((field) |= (flag))
# 82| #define SPA_FLAG_CLEAR(field, flag) \
# 83|-> ({ \
# 84| SPA_STATIC_ASSERT(__builtin_constant_p(flag) ? \
# 85| (__typeof__(flag))(__typeof__(field))(__typeof__(flag))(flag) == (flag) : \
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/include/spa/utils/defs.h:85:95: warning[-Wpedantic]: expression in static assertion is not an integer constant expression
# 84 | SPA_STATIC_ASSERT(__builtin_constant_p(flag) ? \
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 85 | (__typeof__(flag))(__typeof__(field))(__typeof__(flag))(flag) == (flag) : \
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
# 86 | sizeof(field) >= sizeof(flag), \
# | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pipewire-1.5.81/spa/include/spa/utils/defs.h:27:65: note: in definition of macro ‘SPA_STATIC_ASSERT_IMPL’
# 27 | # define SPA_STATIC_ASSERT_IMPL(expr, msg, ...) _Static_assert(expr, msg)
# | ^~~~
pipewire-1.5.81/spa/include/spa/utils/defs.h:84:9: note: in expansion of macro ‘SPA_STATIC_ASSERT’
# 84 | SPA_STATIC_ASSERT(__builtin_constant_p(flag) ? \
# | ^~~~~~~~~~~~~~~~~
pipewire-1.5.81/spa/include/spa/utils/defs.h:91:81: note: in expansion of macro ‘SPA_FLAG_CLEAR’
# 91 | #define SPA_FLAG_UPDATE(field,flag,val) ((val) ? SPA_FLAG_SET((field),(flag)) : SPA_FLAG_CLEAR((field),(flag)))
# | ^~~~~~~~~~~~~~
pipewire-1.5.81/spa/include/spa/utils/json-core.h:167:41: note: in expansion of macro ‘SPA_FLAG_UPDATE’
# 167 | SPA_FLAG_UPDATE(array_stack[(iter->depth-1) >> 6], mask, flag & __ARRAY_FLAG);
# | ^~~~~~~~~~~~~~~
# 83| ({ \
# 84| SPA_STATIC_ASSERT(__builtin_constant_p(flag) ? \
# 85|-> (__typeof__(flag))(__typeof__(field))(__typeof__(flag))(flag) == (flag) : \
# 86| sizeof(field) >= sizeof(flag), \
# 87| "truncation problem when masking " #field \
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/include/spa/utils/result.h:10: included_from: Included from here.
pipewire-1.5.81/spa/tools/spa-json-dump.c:16: included_from: Included from here.
pipewire-1.5.81/spa/include/spa/utils/string.h: scope_hint: In function ‘spa_strbuf_append’
pipewire-1.5.81/spa/include/spa/utils/defs.h:147:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
# 147 | ({ \
# | ^
pipewire-1.5.81/spa/include/spa/utils/string.h:392:29: note: in expansion of macro ‘SPA_MIN’
# 392 | buf->pos += SPA_MIN(remain, (size_t)written);
# | ^~~~~~~
# 145| })
# 146| #define SPA_MIN(a,b) \
# 147|-> ({ \
# 148| __typeof__(a) _min_a = (a); \
# 149| __typeof__(b) _min_b = (b); \
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/include/spa/utils/json-core.h: scope_hint: In function ‘spa_json_get_error’
pipewire-1.5.81/spa/include/spa/utils/defs.h:153:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
# 153 | ({ \
# | ^
pipewire-1.5.81/spa/include/spa/utils/defs.h:148:20: note: in definition of macro ‘SPA_MIN’
# 148 | __typeof__(a) _min_a = (a); \
# | ^
pipewire-1.5.81/spa/include/spa/utils/defs.h:163:17: note: in expansion of macro ‘SPA_MAX’
# 163 | SPA_MIN(SPA_MAX(_v, _low), _high); \
# | ^~~~~~~
pipewire-1.5.81/spa/include/spa/utils/json-core.h:379:24: note: in expansion of macro ‘SPA_CLAMP’
# 379 | code = SPA_CLAMP(iter->state & 0xff, 0u, SPA_N_ELEMENTS(reasons)-1);
# | ^~~~~~~~~
# 151| })
# 152| #define SPA_MAX(a,b) \
# 153|-> ({ \
# 154| __typeof__(a) _max_a = (a); \
# 155| __typeof__(b) _max_b = (b); \
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/include/spa/utils/defs.h:159:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
# 159 | ({ \
# | ^
pipewire-1.5.81/spa/include/spa/utils/json-core.h:379:24: note: in expansion of macro ‘SPA_CLAMP’
# 379 | code = SPA_CLAMP(iter->state & 0xff, 0u, SPA_N_ELEMENTS(reasons)-1);
# | ^~~~~~~~~
# 157| })
# 158| #define SPA_CLAMP(v,low,high) \
# 159|-> ({ \
# 160| __typeof__(v) _v = (v); \
# 161| __typeof__(low) _low = (low); \
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/include/spa/support/log.h:12: included_from: Included from here.
pipewire-1.5.81/spa/include/spa/debug/file.h:13: included_from: Included from here.
pipewire-1.5.81/spa/tools/spa-json-dump.c:18: included_from: Included from here.
pipewire-1.5.81/spa/include/spa/support/log.h: scope_hint: In function ‘spa_log_topic_init’
pipewire-1.5.81/spa/include/spa/utils/hook.h:165:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
# 165 | ({ \
# | ^
pipewire-1.5.81/spa/include/spa/utils/hook.h:238:9: note: in expansion of macro ‘spa_callbacks_call’
# 238 | spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__)
# | ^~~~~~~~~~~~~~~~~~
pipewire-1.5.81/spa/include/spa/support/log.h:229:9: note: in expansion of macro ‘spa_interface_call’
# 229 | spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic);
# | ^~~~~~~~~~~~~~~~~~
# 163| */
# 164| #define spa_callbacks_call(callbacks,type,method,vers,...) \
# 165|-> ({ \
# 166| const type *_f = (const type *) (callbacks)->funcs; \
# 167| bool _res = SPA_CALLBACK_CHECK(_f,method,vers); \
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/include/spa/utils/json.h:15: included_from: Included from here.
pipewire-1.5.81/spa/tools/spa-json-dump.c:17: included_from: Included from here.
pipewire-1.5.81/spa/include/spa/utils/json-core.h:251:25: warning[-Wpedantic]: ISO C does not support range expressions in switch statements before C2Y
# 251 | case 240 ... 247:
# | ^~~~
# 249| continue;
# 250| return ++iter->cur - *value;
# 251|-> case 240 ... 247:
# 252| utf8_remain++;
# 253| SPA_FALLTHROUGH;
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/include/spa/utils/json-core.h:254:25: warning[-Wpedantic]: ISO C does not support range expressions in switch statements before C2Y
# 254 | case 224 ... 239:
# | ^~~~
# 252| utf8_remain++;
# 253| SPA_FALLTHROUGH;
# 254|-> case 224 ... 239:
# 255| utf8_remain++;
# 256| SPA_FALLTHROUGH;
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/include/spa/utils/json-core.h:257:25: warning[-Wpedantic]: ISO C does not support range expressions in switch statements before C2Y
# 257 | case 192 ... 223:
# | ^~~~
# 255| utf8_remain++;
# 256| SPA_FALLTHROUGH;
# 257|-> case 192 ... 223:
# 258| utf8_remain++;
# 259| iter->state = __UTF8 | flag;
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/include/spa/utils/json-core.h:268:25: warning[-Wpedantic]: ISO C does not support range expressions in switch statements before C2Y
# 268 | case 128 ... 191:
# | ^~~~
# 266| case __UTF8:
# 267| switch (cur) {
# 268|-> case 128 ... 191:
# 269| if (--utf8_remain == 0)
# 270| iter->state = __STRING | flag;
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/include/spa/utils/json-core.h: scope_hint: In function ‘spa_json_parse_float’
pipewire-1.5.81/spa/include/spa/utils/json-core.h:424:37: warning[-Wpedantic]: ISO C does not support range expressions in switch statements before C2Y
# 424 | case '+': case '-': case '0' ... '9': case '.': case 'e': case 'E': break;
# | ^~~~
# 422| for (pos = 0; pos < len; ++pos) {
# 423| switch (val[pos]) {
# 424|-> case '+': case '-': case '0' ... '9': case '.': case 'e': case 'E': break;
# 425| default: return 0;
# 426| }
Error: GCC_ANALYZER_WARNING (CWE-416):
pipewire-1.5.81/spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘item’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2500:13: enter_function: entry to ‘rfcomm_event’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2505:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2511:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2511:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2515:23: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2516:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2520:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2536:25: call_function: calling ‘rfcomm_process_events’ from ‘rfcomm_event’
# 69| SPA_API_LIST void spa_list_remove(struct spa_list *elem)
# 70| {
# 71|-> elem->prev->next = elem->next;
# 72| elem->next->prev = elem->prev;
# 73| }
Error: GCC_ANALYZER_WARNING (CWE-416):
pipewire-1.5.81/spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘updated_call’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2500:13: enter_function: entry to ‘rfcomm_event’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2505:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2506:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2507:17: call_function: calling ‘rfcomm_free’ from ‘rfcomm_event’
# 69| SPA_API_LIST void spa_list_remove(struct spa_list *elem)
# 70| {
# 71|-> elem->prev->next = elem->next;
# 72| elem->next->prev = elem->prev;
# 73| }
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1519:20: warning[-Wanalyzer-malloc-leak]: leak of ‘_mem_alloc’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1494:8: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1506:8: branch_false: following ‘false’ branch (when ‘n == 0’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1516:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1516:17: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1516:17: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1518:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1519:20: danger: ‘_mem_alloc’ leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
# 1517|
# 1518| rates[0] = fallback_rate;
# 1519|-> if ((ret = snd_pcm_hw_params_set_rate_near(pcm, hwparams, &rates[0], NULL)) < 0) {
# 1520| pa_log_debug("snd_pcm_hw_params_set_rate_near() failed: %s", pa_alsa_strerror(ret));
# 1521| pa_xfree(rates);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1598:20: warning[-Wanalyzer-malloc-leak]: leak of ‘_mem_alloc’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1573:8: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1585:8: branch_false: following ‘false’ branch (when ‘n == 0’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1597:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1598:20: danger: ‘_mem_alloc’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
# 1596|
# 1597| formats[0] = fallback_format;
# 1598|-> if ((ret = snd_pcm_hw_params_set_format(pcm, hwparams, format_trans_to_pcm[formats[0]])) < 0) {
# 1599| pa_log_debug("snd_pcm_hw_params_set_format() failed: %s", pa_alsa_strerror(ret));
# 1600| pa_xfree(formats);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1635:12: warning[-Wanalyzer-malloc-leak]: leak of ‘_mem_alloc’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1532:21: enter_function: entry to ‘pa_alsa_get_supported_formats’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1573:8: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1585:8: branch_false: following ‘false’ branch (when ‘n == 0’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1597:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1598:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1599:13: call_function: inlined call to ‘pa_alsa_strerror’ from ‘pa_alsa_get_supported_formats’
# 1633|
# 1634| const char* pa_alsa_strerror(int errnum) {
# 1635|-> return snd_strerror(errnum);
# 1636| }
# 1637|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/alsa/acp/compat.h:242:9: warning[-Wanalyzer-malloc-leak]: leak of ‘_mem_alloc’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1532:21: enter_function: entry to ‘pa_alsa_get_supported_formats’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1573:8: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1585:8: branch_false: following ‘false’ branch (when ‘n == 0’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1597:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1598:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1599:13: call_function: inlined call to ‘pa_alsa_strerror’ from ‘pa_alsa_get_supported_formats’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1599:13: call_function: calling ‘pa_log_level_meta’ from ‘pa_alsa_get_supported_formats’
# 240| va_list args;
# 241| va_start(args,fmt);
# 242|-> pa_log_levelv_meta(level,file,line,func,fmt,args);
# 243| va_end(args);
# 244| }
Error: GCC_ANALYZER_WARNING (CWE-688):
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:119:13: warning[-Wanalyzer-null-argument]: use of NULL ‘state.section’ where non-null expected
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:156:5: enter_function: entry to ‘pa_config_parse’
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:162:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:165:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:167:8: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:177:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:186:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:187:14: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:187:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:195:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:197:13: call_function: calling ‘parse_line’ from ‘pa_config_parse’
# 117| state->section = pa_xstrndup(state->lvalue + 1, k-2);
# 118|
# 119|-> if (pa_streq(state->section, "Properties")) {
# 120| if (!state->proplist) {
# 121| pa_log("[%s:%u] \"Properties\" section is not allowed in this file.", state->filename, state->lineno);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/alsa/acp/hashmap.h:85:42: warning[-Wanalyzer-malloc-leak]: leak of ‘_mem_alloc’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1839:16: enter_function: entry to ‘pa_alsa_create_mixer’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1842:10: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1842:10: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1846:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1848:5: branch_true: following ‘true’ branch (when ‘dev’ is non-NULL)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1848:28: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1848:28: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1848:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1848:5: call_function: calling ‘pa_hashmap_put’ from ‘pa_alsa_create_mixer’
# 83| pa_hashmap_item *item = NULL;
# 84| pa_array_for_each(item, &h->array) {
# 85|-> if (item->key != NULL && h->compare_func(item->key, key) == 0)
# 86| return item;
# 87| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:981: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 979| state->stream == SND_PCM_STREAM_PLAYBACK) {
# 980| state->use_period_size_min_as_headroom = true;
# 981|-> spa_log_info(state->log,
# 982| "ALSA SOF driver detected: default api.alsa.use-period-size-min-as-headroom=true");
# 983| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2375: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2373| * set and default_headroom is 0 (not forced by user)
# 2374| */
# 2375|-> CHECK(snd_pcm_hw_params_get_period_size_min(params, &state->period_size_min, &dir), "snd_pcm_hw_params_get_period_size_min");
# 2376|
# 2377| if (state->default_period_size == 0) {
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2388: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2386| err = snd_pcm_hw_params_set_periods_min(hndl, params, &periods_min, &dir);
# 2387| if (!err) {
# 2388|-> CHECK(snd_pcm_hw_params_get_period_size_max(params, &period_size_max, &dir),
# 2389| "get_period_size_max");
# 2390| if (period_size > period_size_max)
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2393: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2391| period_size = SPA_MIN(period_size, flp2(period_size_max));
# 2392| } else {
# 2393|-> spa_log_debug(state->log, "set_periods_min: %s", snd_strerror(err));
# 2394| }
# 2395| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2565: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2563|
# 2564| if (SPA_UNLIKELY((res = snd_pcm_mmap_begin(hndl, &my_areas, &offset, &frames)) < 0)) {
# 2565|-> spa_log_error(state->log, "%s: snd_pcm_mmap_begin error: %s",
# 2566| state->name, snd_strerror(res));
# 2567| return res;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2576: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2574|
# 2575| if (SPA_UNLIKELY((res = snd_pcm_mmap_commit(hndl, offset, silence)) < 0)) {
# 2576|-> spa_log_error(state->log, "%s: snd_pcm_mmap_commit error: %s",
# 2577| state->name, snd_strerror(res));
# 2578| return res;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2623: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2621| state->last_threshold = state->threshold;
# 2622|
# 2623|-> spa_log_debug(state->log, "%p: start threshold:%d duration:%d rate:%d follower:%d match:%d resample:%d",
# 2624| state, state->threshold, state->driver_duration, state->driver_rate.denom,
# 2625| state->following, state->matching, state->resample);
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2627: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2625| state->following, state->matching, state->resample);
# 2626|
# 2627|-> CHECK(set_swparams(state), "swparams");
# 2628|
# 2629| if ((!state->linked) && (err = snd_pcm_prepare(state->hndl)) < 0 && err != -EBUSY) {
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2630: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2628|
# 2629| if ((!state->linked) && (err = snd_pcm_prepare(state->hndl)) < 0 && err != -EBUSY) {
# 2630|-> spa_log_error(state->log, "%s: snd_pcm_prepare error: %s",
# 2631| state->name, snd_strerror(err));
# 2632| return err;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2653: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2651| {
# 2652| int res;
# 2653|-> spa_log_debug(state->log, "%p: snd_pcm_drop linked:%u", state, state->linked);
# 2654| if (!state->linked && (res = snd_pcm_drop(state->hndl)) < 0) {
# 2655| spa_log_error(state->log, "%s: snd_pcm_drop: %s",
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2655: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2653| spa_log_debug(state->log, "%p: snd_pcm_drop linked:%u", state, state->linked);
# 2654| if (!state->linked && (res = snd_pcm_drop(state->hndl)) < 0) {
# 2655|-> spa_log_error(state->log, "%s: snd_pcm_drop: %s",
# 2656| state->name, snd_strerror(res));
# 2657| return res;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2666: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2664| int res;
# 2665| if (SPA_UNLIKELY(!state->alsa_started)) {
# 2666|-> spa_log_debug(state->log, "%p: snd_pcm_start linked:%u", state, state->linked);
# 2667| if (!state->linked && (res = snd_pcm_start(state->hndl)) < 0) {
# 2668| spa_log_error(state->log, "%s: snd_pcm_start: %s",
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2668: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2666| spa_log_debug(state->log, "%p: snd_pcm_start linked:%u", state, state->linked);
# 2667| if (!state->linked && (res = snd_pcm_start(state->hndl)) < 0) {
# 2668|-> spa_log_error(state->log, "%s: snd_pcm_start: %s",
# 2669| state->name, snd_strerror(res));
# 2670| return res;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2688: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2686| snd_pcm_status_alloca(&status);
# 2687| if (SPA_UNLIKELY((res = snd_pcm_status(state->hndl, status)) < 0)) {
# 2688|-> spa_log_error(state->log, "%s: snd_pcm_status error: %s",
# 2689| state->name, snd_strerror(res));
# 2690| goto recover;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2708: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2706| missing += state->start_delay + state->threshold + state->headroom;
# 2707|
# 2708|-> spa_log_trace(state->log, "%p: xrun of %"PRIu64" usec %"PRIu64,
# 2709| state, delay, missing);
# 2710|
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2720: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2718| }
# 2719| case SND_PCM_STATE_SUSPENDED:
# 2720|-> spa_log_info(state->log, "%s: recover from state %s",
# 2721| state->name, snd_pcm_state_name(st));
# 2722| while (retry++ < 5 && (res = snd_pcm_resume(state->hndl)) == -EAGAIN)
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2730: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2728| break;
# 2729| default:
# 2730|-> spa_log_error(state->log, "%s: recover from error state %s",
# 2731| state->name, snd_pcm_state_name(st));
# 2732| break;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2783: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2781| if ((avail = alsa_avail(state)) < 0) {
# 2782| if ((suppressed = spa_ratelimit_test(&state->rate_limit, current_time)) >= 0) {
# 2783|-> spa_log_warn(state->log, "%s: (%d suppressed) snd_pcm_avail after recover: %s",
# 2784| state->name, suppressed, snd_strerror(avail));
# 2785| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2798: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2796| if ((res = snd_pcm_htimestamp(state->hndl, &havail, &tstamp)) < 0) {
# 2797| if ((suppressed = spa_ratelimit_test(&state->rate_limit, current_time)) >= 0) {
# 2798|-> spa_log_warn(state->log, "%s: (%d suppressed) snd_pcm_htimestamp error: %s",
# 2799| state->name, suppressed, snd_strerror(res));
# 2800| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2820: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2818| } else if (state->htimestamp_max_errors) {
# 2819| if (++state->htimestamp_error > state->htimestamp_max_errors) {
# 2820|-> spa_log_error(state->log, "%s: wrong htimestamps from driver, disabling",
# 2821| state->name);
# 2822| state->htimestamp_error = 0;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2826: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2824| }
# 2825| else if ((suppressed = spa_ratelimit_test(&state->rate_limit, current_time)) >= 0) {
# 2826|-> spa_log_warn(state->log, "%s: (%d suppressed) impossible htimestamp diff:%"PRIi64,
# 2827| state->name, suppressed, diff);
# 2828| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2892: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2890| if (SPA_UNLIKELY(diff != 0)) {
# 2891| err -= diff;
# 2892|-> spa_log_trace(state->log, "%p: follower:%d quantum change %d -> %d (%d) %f",
# 2893| state, follower, state->last_threshold, state->threshold, diff, err);
# 2894| state->last_threshold = state->threshold;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2929: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2927| bw = (fabs(state->err_avg) + sqrt(fabs(state->err_var)))/1000.0;
# 2928|
# 2929|-> spa_log_debug(state->log, "%s: follower:%d match:%d rate:%f "
# 2930| "bw:%f thr:%u del:%ld target:%ld err:%f max_err:%f max_resync: %f var:%f:%f:%f",
# 2931| state->name, follower, state->matching,
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2985: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2983| return -ENOTSUP;
# 2984|
# 2985|-> spa_log_debug(state->log, "driver clock:'%s' our clock:'%s'",
# 2986| state->position->clock.name, state->clock_name);
# 2987|
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2997: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2995| recalc_headroom(state);
# 2996|
# 2997|-> spa_log_info(state->log, "driver clock:'%s'@%d our clock:'%s'@%d matching:%d resample:%d",
# 2998| state->position->clock.name, state->driver_rate.denom,
# 2999| state->clock_name, state->rate,
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3041: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3039| if (SPA_UNLIKELY((state->driver_duration != target_duration) ||
# 3040| (state->driver_rate.denom != target_rate.denom))) {
# 3041|-> spa_log_info(state->log, "%p: follower:%d duration:%u->%"PRIu64" rate:%d->%d",
# 3042| state, state->following, state->driver_duration, target_duration,
# 3043| state->driver_rate.denom, target_rate.denom);
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3067: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3065|
# 3066| if (SPA_UNLIKELY((res = get_status(state, current_time, &avail, &delay, &target)) < 0)) {
# 3067|-> spa_log_error(state->log, "get_status error: %s", spa_strerror(res));
# 3068| state->next_time += (uint64_t)(state->threshold * 1e9 / state->rate);
# 3069| return res;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3073: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3071|
# 3072| if (SPA_UNLIKELY(!following && state->alsa_started && delay > target + state->max_error)) {
# 3073|-> spa_log_trace(state->log, "%p: early wakeup %ld %lu %lu", state,
# 3074| avail, delay, target);
# 3075| if (delay > target * 3)
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3096: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3094| lev = SPA_LOG_LEVEL_DEBUG;
# 3095|
# 3096|-> spa_log_lev(state->log, lev, "%s: follower avail:%lu delay:%ld "
# 3097| "target:%ld thr:%u, resync (%d suppressed)",
# 3098| state->name, avail, delay,
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3129: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3127| if (state->use_mmap && frames > 0) {
# 3128| if (SPA_UNLIKELY((res = snd_pcm_mmap_begin(hndl, &my_areas, &offset, &frames)) < 0)) {
# 3129|-> spa_log_error(state->log, "%s: snd_pcm_mmap_begin error: %s",
# 3130| state->name, snd_strerror(res));
# 3131| alsa_recover(state);
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3203: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3201| if (SPA_UNLIKELY((commitres = snd_pcm_mmap_commit(hndl, offset, written)) < 0)) {
# 3202| if (commitres == -EPIPE || commitres == -ESTRPIPE) {
# 3203|-> spa_log_warn(state->log, "%s: snd_pcm_mmap_commit error: %s",
# 3204| state->name, snd_strerror(commitres));
# 3205| } else {
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3206: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3204| state->name, snd_strerror(commitres));
# 3205| } else {
# 3206|-> spa_log_error(state->log, "%s: snd_pcm_mmap_commit error: %s",
# 3207| state->name, snd_strerror(commitres));
# 3208| return res;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3212: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3210| }
# 3211| if (commitres > 0 && written != (snd_pcm_uframes_t) commitres) {
# 3212|-> spa_log_warn(state->log, "%s: mmap_commit wrote %ld instead of %ld",
# 3213| state->name, commitres, written);
# 3214| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3259: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3257|
# 3258| if (spa_list_is_empty(&state->free)) {
# 3259|-> spa_log_warn(state->log, "%s: no more buffers", state->name);
# 3260| total_frames = frames;
# 3261| } else {
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3334: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3332|
# 3333| if (SPA_UNLIKELY((res = get_status(state, current_time, &avail, &delay, &target)) < 0)) {
# 3334|-> spa_log_error(state->log, "get_status error: %s", spa_strerror(res));
# 3335| state->next_time += (uint64_t)(state->threshold * 1e9 / state->rate);
# 3336| return res;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3340: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3338|
# 3339| if (SPA_UNLIKELY(!following && avail < state->read_size)) {
# 3340|-> spa_log_trace(state->log, "%p: early wakeup %ld %ld %ld %d", state,
# 3341| delay, avail, target, state->read_size);
# 3342| state->next_time = current_time + (state->read_size - avail) * SPA_NSEC_PER_SEC /
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3363: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3361| lev = SPA_LOG_LEVEL_DEBUG;
# 3362|
# 3363|-> spa_log_lev(state->log, lev, "%s: follower delay:%ld target:%ld thr:%u "
# 3364| "resample:%d, resync (%d suppressed)", state->name, delay,
# 3365| target, state->threshold, state->resample, suppressed);
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3400: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3398| avail = state->buffer_frames;
# 3399| if ((res = snd_pcm_mmap_begin(hndl, &my_areas, &offset, &avail)) < 0) {
# 3400|-> spa_log_error(state->log, "%s: snd_pcm_mmap_begin error: %s",
# 3401| state->name, snd_strerror(res));
# 3402| alsa_recover(state);
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3432: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3430| lev = SPA_LOG_LEVEL_INFO;
# 3431|
# 3432|-> spa_log_lev(state->log, lev, "%s: snd_pcm_mmap_commit error %lu %lu %lu: %s",
# 3433| state->name, frames, avail, read, snd_strerror(commitres));
# 3434| if (commitres != -EPIPE && commitres != -ESTRPIPE)
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3438: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3436| }
# 3437| if (commitres > 0 && read != (snd_pcm_uframes_t) commitres) {
# 3438|-> spa_log_warn(state->log, "%s: mmap_commit read %ld instead of %ld",
# 3439| state->name, commitres, read);
# 3440| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3468: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3466|
# 3467| if (SPA_UNLIKELY(spa_list_is_empty(&state->free))) {
# 3468|-> spa_log_warn(state->log, "%s: no more buffers", state->name);
# 3469| return -EPIPE;
# 3470| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3616: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3614| if (SPA_UNLIKELY(err = snd_pcm_poll_descriptors_revents(state->hndl,
# 3615| state->pfds, state->n_fds, &revents))) {
# 3616|-> spa_log_error(state->log, "Could not look up revents: %s",
# 3617| snd_strerror(err));
# 3618| return;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3646: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3644| * in the same epoll wakeup cycle */
# 3645| if (res != -EAGAIN)
# 3646|-> spa_log_warn(state->log, "%p: error reading timerfd: %s",
# 3647| state, spa_strerror(res));
# 3648| return;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3658: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3656| current_time > state->next_time + SPA_NSEC_PER_SEC) {
# 3657| if ((suppressed = spa_ratelimit_test(&state->rate_limit, current_time)) >= 0) {
# 3658|-> spa_log_error(state->log, "%s: impossible timeout %"
# 3659| PRIu64" %"PRIu64" %"PRIi64" %d %"PRIi64" (%d suppressed)",
# 3660| state->name, current_time, state->next_time,
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3706: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3704| spa_list_append(&state->driver->rt.followers, &rt->driver_link);
# 3705| rt->driver = state->driver;
# 3706|-> spa_log_debug(state->log, "state:%p -> driver:%p", state, state->driver);
# 3707|
# 3708| if (state->linked && state->matching)
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3745: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3743|
# 3744| if (check_position_config(state, true) < 0) {
# 3745|-> spa_log_error(state->log, "%s: invalid position config", state->name);
# 3746| return -EIO;
# 3747| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3789: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3787| err = snd_pcm_poll_descriptors_count(state->hndl);
# 3788| if (err < 0) {
# 3789|-> spa_log_error(state->log, "Could not get poll descriptor count: %s",
# 3790| snd_strerror(err));
# 3791| return err;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3794: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3792| }
# 3793| if (err > MAX_POLL) {
# 3794|-> spa_log_error(state->log, "Unsupported poll descriptor count: %d", err);
# 3795| return -EIO;
# 3796| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3800: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3798|
# 3799| if ((err = snd_pcm_poll_descriptors(state->hndl, state->pfds, state->n_fds)) < 0) {
# 3800|-> spa_log_error(state->log, "Could not get poll descriptors: %s",
# 3801| snd_strerror(err));
# 3802| return err;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3866: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3864|
# 3865| if (driver != state->driver) {
# 3866|-> spa_log_debug(state->log, "%p: reassign driver %p->%p", state, state->driver, driver);
# 3867| if (state->driver != NULL)
# 3868| spa_list_remove(&state->driver_link);
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3875: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3873| }
# 3874| if (following != state->following) {
# 3875|-> spa_log_debug(state->log, "%p: reassign follower %d->%d", state, state->following, following);
# 3876| state->following = following;
# 3877| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3886: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3884| freewheel = pos != NULL && SPA_FLAG_IS_SET(pos->clock.flags, SPA_IO_CLOCK_FLAG_FREEWHEEL);
# 3885| if (state->freewheel != freewheel) {
# 3886|-> spa_log_debug(state->log, "%p: freewheel %d->%d", state, state->freewheel, freewheel);
# 3887| state->freewheel = freewheel;
# 3888| if (state->started) {
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3906: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3904| return 0;
# 3905|
# 3906|-> spa_log_debug(state->log, "%p: pause", state);
# 3907|
# 3908| state->started = false;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3970: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3968| }
# 3969| }
# 3970|-> spa_node_emit_info(&state->hooks, &state->info);
# 3971|
# 3972| state->info.change_mask = old;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3996: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3994| }
# 3995| }
# 3996|-> spa_node_emit_port_info(&state->hooks,
# 3997| state->stream == SND_PCM_STREAM_PLAYBACK ? SPA_DIRECTION_INPUT : SPA_DIRECTION_OUTPUT,
# 3998| 0, &state->port_info);
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-seq.c:32: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 30| int res;
# 31|
# 32|-> spa_log_debug(state->log, "%p: ALSA seq open '%s' duplex", state, props->device);
# 33|
# 34| if ((res = snd_seq_open(&conn->hndl,
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-seq.c:41: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 39|
# 40| if (!state->ump) {
# 41|-> spa_log_info(state->log, "%p: ALSA UMP MIDI disabled", state);
# 42| return 0;
# 43| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/alsa/alsa-seq.c:69: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 67|
# 68| if (res < 0) {
# 69|-> spa_log_lev(state->log, (probe_ump ? SPA_LOG_LEVEL_INFO : SPA_LOG_LEVEL_ERROR),
# 70| "%p: ALSA failed to enable UMP MIDI: %s", state, snd_strerror(res));
# 71| if (!probe_ump) {
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:799: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 797| case SPA_PARAM_Format:
# 798| if (this->started) {
# 799|-> spa_log_error(this->log, "%p: cannot set Format param: "
# 800| "node already started", this);
# 801| return -EIO;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:804: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 802| }
# 803| if (param == NULL) {
# 804|-> spa_log_error(this->log, "%p: attempted to set NULL Format POD", this);
# 805| return -EINVAL;
# 806| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:809: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 807|
# 808| if (spa_format_audio_parse(param, &info) < 0) {
# 809|-> spa_log_error(this->log, "%p: cannot set Format param: "
# 810| "parsing the POD failed", this);
# 811| return -EINVAL;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:817: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 815| spa_type_media_subtype,
# 816| "<unknown>");
# 817|-> spa_log_error(this->log, "%p: cannot set Format param: "
# 818| "expected raw subtype, got subtype \"%s\"", this, subtype_name);
# 819| return -EINVAL;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:832: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 830|
# 831| if (this->started) {
# 832|-> spa_log_error(this->log, "%p: cannot set PortConfig param: "
# 833| "node already started", this);
# 834| return -EIO;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:842: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 840| SPA_PARAM_PORT_CONFIG_mode, SPA_POD_Id(&mode),
# 841| SPA_PARAM_PORT_CONFIG_format, SPA_POD_OPT_Pod(&format)) < 0) {
# 842|-> spa_log_error(this->log, "%p: cannot set PortConfig param: "
# 843| "parsing the POD failed", this);
# 844| return -EINVAL;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:860: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 858| spa_type_media_subtype,
# 859| "<unknown>");
# 860|-> spa_log_error(this->log, "%p: cannot set PortConfig param: "
# 861| "subtype \"%s\" is not supported", this, subtype_name);
# 862| return -ENOTSUP;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:870: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 868| switch (mode) {
# 869| case SPA_PARAM_PORT_CONFIG_MODE_none:
# 870|-> spa_log_error(this->log, "%p: cannot set PortConfig param: "
# 871| "\"none\" config mode is not supported", this);
# 872| return -ENOTSUP;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:883: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 881| break;
# 882| default:
# 883|-> spa_log_error(this->log, "%p: invalid config mode when setting PortConfig param",
# 884| this);
# 885| return -EINVAL;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1302: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1300| uint32_t i;
# 1301|
# 1302|-> spa_log_debug(this->log, "%p: info change:%08"PRIx64" %d:%d", this,
# 1303| info->change_mask, info->max_input_ports, info->max_output_ports);
# 1304|
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1215: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1213|
# 1214| if (maxsize > this->scratch_size) {
# 1215|-> spa_log_info(this->log, "resize tmp %d -> %d", this->scratch_size, maxsize);
# 1216|
# 1217| if ((empty = realloc(this->empty, maxsize + MAX_ALIGN)) != NULL)
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1242: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1240| }
# 1241| if (maxports > this->scratch_ports) {
# 1242|-> spa_log_info(this->log, "resize ports %d -> %d", this->scratch_ports, maxports);
# 1243|
# 1244| for (i = this->scratch_ports; i < maxports; i++) {
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1283: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1281| if ((res = setup_filter_graph(impl, g, channels, position)) < 0) {
# 1282| g->removing = true;
# 1283|-> spa_log_warn(impl->log, "failed to activate graph %d: %s", g->order,
# 1284| spa_strerror(res));
# 1285| } else {
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1369: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1367| if (g->order == order) {
# 1368| g->removing = true;
# 1369|-> spa_log_info(impl->log, "removing filter-graph order:%d", order);
# 1370| }
# 1371| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1396: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1394| insert_graph(&impl->active_graphs, pending);
# 1395|
# 1396|-> spa_log_info(impl->log, "loading filter-graph order:%d", order);
# 1397| }
# 1398| if (impl->setup)
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1590: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1588| do {
# 1589| float vas = get_volume_at_scale(vrp, volume_accum);
# 1590|-> spa_log_trace(this->log, "volume accum %f", vas);
# 1591| spa_pod_builder_control(&b.b, volume_offs, SPA_CONTROL_Properties);
# 1592| spa_pod_builder_add_object(&b.b,
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1619: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1617| do {
# 1618| float vas = get_volume_at_scale(vrp, volume_accum);
# 1619|-> spa_log_trace(this->log, "volume accum %f", vas);
# 1620| spa_pod_builder_control(&b.b, volume_offs, SPA_CONTROL_Properties);
# 1621| spa_pod_builder_add_object(&b.b,
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1974: error[uninitvar]: Uninitialized variable: direction
# 1972| infop = &info;
# 1973| }
# 1974|-> return reconfigure_mode(this, mode, direction, monitor, control, infop);
# 1975| }
# 1976|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1974: error[uninitvar]: Uninitialized variable: mode
# 1972| infop = &info;
# 1973| }
# 1974|-> return reconfigure_mode(this, mode, direction, monitor, control, infop);
# 1975| }
# 1976|
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2891: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2889| uint32_t i, j;
# 2890|
# 2891|-> spa_log_debug(this->log, "%p: clear buffers %p %d", this, port, port->n_buffers);
# 2892| for (i = 0; i < port->n_buffers; i++) {
# 2893| struct buffer *b = &port->buffers[i];
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2897: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2895| for (j = 0; j < b->buf->n_datas; j++) {
# 2896| if (b->datas[j]) {
# 2897|-> spa_log_debug(this->log, "%p: unmap buffer %d data %d %p",
# 2898| this, i, j, b->datas[j]);
# 2899| munmap(b->datas[j], b->buf->datas[j].maxsize);
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3238: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3236| prot, MAP_SHARED, d[j].fd, d[j].mapoffset);
# 3237| if (data == MAP_FAILED) {
# 3238|-> spa_log_error(this->log, "%p: mmap failed %d on buffer %d %d %p: %m",
# 3239| this, j, i, d[j].type, data);
# 3240| res = -EINVAL;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3244: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3242| }
# 3243| SPA_FLAG_SET(b->flags, BUFFER_FLAG_MAPPED);
# 3244|-> spa_log_debug(this->log, "%p: mmap %d on buffer %d %d %p %p",
# 3245| this, j, i, d[j].type, data, b);
# 3246| }
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3767: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3765| add_wav_stage(this, ctx);
# 3766|
# 3767|-> spa_log_debug(this->log, "got %u processing stages", this->n_stages);
# 3768| }
# 3769|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:521:23: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:458:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:459:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:462:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:463:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:473:26: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:474:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:478:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:520:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:521:23: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:521:23: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 519| this->frequency);
# 520| if (res < 0) {
# 521|-> res = ldacBT_get_error_code(this->ldac);
# 522| spa_log_error(log_, "LDAC encoder initialization failed: %s (%d)",
# 523| ldac_strerror(LDACBT_API_ERR(res)), res);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:522:17: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:449:14: enter_function: entry to ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:458:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:459:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:462:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:463:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:473:26: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:474:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:478:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:520:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:521:23: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:522:17: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:522:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:522:17: danger: ‘this’ leaks here; was allocated at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
# 520| if (res < 0) {
# 521| res = ldacBT_get_error_code(this->ldac);
# 522|-> spa_log_error(log_, "LDAC encoder initialization failed: %s (%d)",
# 523| ldac_strerror(LDACBT_API_ERR(res)), res);
# 524| res = -EIO;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1509:14: warning[-Wanalyzer-malloc-leak]: leak of ‘backend’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1474:24: enter_function: entry to ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1490:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1491:12: branch_false: following ‘false’ branch (when ‘backend’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1494:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1500:24: call_function: calling ‘spa_support_find’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1500:24: return_function: returning to ‘backend_hsphfpd_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1501:25: call_function: calling ‘spa_support_find’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1501:25: return_function: returning to ‘backend_hsphfpd_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1502:30: call_function: calling ‘spa_support_find’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1502:30: return_function: returning to ‘backend_hsphfpd_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:12: branch_true: following ‘true’ branch (when ‘info’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:28: call_function: inlined call to ‘spa_dict_lookup’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:28: call_function: inlined call to ‘spa_dict_lookup’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:13: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1505:43: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1509:14: danger: ‘backend’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
# 1507| backend->msbc_supported = false;
# 1508|
# 1509|-> if (!spa_bt_get_hfp_codec(monitor, HFP_AUDIO_CODEC_MSBC))
# 1510| backend->msbc_supported = false;
# 1511|
Error: GCC_ANALYZER_WARNING (CWE-416):
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:422:21: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘cmd’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2500:13: enter_function: entry to ‘rfcomm_event’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2505:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2506:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2507:17: call_function: calling ‘rfcomm_free’ from ‘rfcomm_event’
# 420|
# 421| spa_list_consume(cmd, &rfcomm->cmd_send_queue, link) {
# 422|-> if (cmd->msg) {
# 423| telephony_send_dbus_method_reply(rfcomm->backend->telephony, cmd->msg, BT_TELEPHONY_ERROR_FAILED, 0);
# 424| spa_clear_ptr(cmd->msg, dbus_message_unref);
Error: GCC_ANALYZER_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:568:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cmd’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2500:13: enter_function: entry to ‘rfcomm_event’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2505:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2511:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2511:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2515:23: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2516:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2520:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2531:25: call_function: calling ‘rfcomm_process_events’ from ‘rfcomm_event’
# 566| spa_log_debug(backend->log, "Queueing command: %s", cmd->cmd);
# 567|
# 568|-> cmd->next_state = next_state;
# 569| cmd->msg = m ? dbus_message_ref(m) : NULL;
# 570| spa_list_append(&rfcomm->cmd_send_queue, &cmd->link);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4087:27: warning[-Wanalyzer-malloc-leak]: leak of ‘backend’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4057:24: enter_function: entry to ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4070:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4071:12: branch_false: following ‘false’ branch (when ‘backend’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4074:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4079:24: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4079:24: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4080:25: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4080:25: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4081:30: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4081:30: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4082:32: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4082:32: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4083:31: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4083:31: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4087:27: danger: ‘backend’ leaks here; was allocated at [(2)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/1)
# 4085| backend->sco.fd = -1;
# 4086|
# 4087|-> backend->codecs = spa_bt_get_media_codecs(monitor);
# 4088|
# 4089| spa_log_topic_init(backend->log, &log_topic);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:914:14: warning[-Wanalyzer-malloc-leak]: leak of ‘backend’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:880:24: enter_function: entry to ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:893:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:894:12: branch_false: following ‘false’ branch (when ‘backend’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:897:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:903:24: call_function: calling ‘spa_support_find’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:903:24: return_function: returning to ‘backend_ofono_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:904:25: call_function: calling ‘spa_support_find’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:904:25: return_function: returning to ‘backend_ofono_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:905:30: call_function: calling ‘spa_support_find’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:905:30: return_function: returning to ‘backend_ofono_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:906:32: call_function: calling ‘spa_support_find’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:906:32: return_function: returning to ‘backend_ofono_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:907:31: call_function: calling ‘spa_support_find’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:907:31: return_function: returning to ‘backend_ofono_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:909:12: branch_true: following ‘true’ branch (when ‘info’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:909:28: call_function: inlined call to ‘spa_dict_lookup’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:909:28: call_function: inlined call to ‘spa_dict_lookup’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:909:13: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:910:43: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:914:14: danger: ‘backend’ leaks here; was allocated at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
# 912| backend->msbc_supported = false;
# 913|
# 914|-> if (!spa_bt_get_hfp_codec(monitor, HFP_AUDIO_CODEC_MSBC))
# 915| backend->msbc_supported = false;
# 916|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/bt-latency.h:63:17: warning[-Wanalyzer-malloc-leak]: leak of ‘stream’
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:436:23: enter_function: entry to ‘stream_create’
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:455:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:461:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:464:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:466:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:471:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:472:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:477:20: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:478:12: branch_false: following ‘false’ branch (when ‘interval > 5000’)...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:483:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:485:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:491:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:491:12: branch_true: following ‘true’ branch (when ‘sink != 0’)...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:496:18: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:496:18: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:497:12: branch_false: following ‘false’ branch (when ‘stream’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:500:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:510:9: call_function: calling ‘spa_bt_latency_init’ from ‘stream_create’
# 61| res = setsockopt(transport->fd, SOL_SOCKET, SO_TIMESTAMPING, &so_timestamping, sizeof(so_timestamping));
# 62| if (res < 0) {
# 63|-> spa_log_info(log, "setsockopt(SO_TIMESTAMPING) failed (kernel feature not enabled?): %d (%m)", errno);
# 64| return;
# 65| }
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/bt-latency.h:69:23: warning[-Wanalyzer-malloc-leak]: leak of ‘stream’
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:436:23: enter_function: entry to ‘stream_create’
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:455:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:461:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:464:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:466:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:471:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:472:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:477:20: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:478:12: branch_false: following ‘false’ branch (when ‘interval > 5000’)...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:483:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:485:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:491:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:491:12: branch_true: following ‘true’ branch (when ‘sink != 0’)...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:496:18: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:496:18: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:497:12: branch_false: following ‘false’ branch (when ‘stream’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:500:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:510:9: call_function: calling ‘spa_bt_latency_init’ from ‘stream_create’
# 67| /* Flush errqueue on start */
# 68| do {
# 69|-> res = recv(transport->fd, NULL, 0, MSG_ERRQUEUE | MSG_DONTWAIT | MSG_TRUNC);
# 70| } while (res == 0);
# 71|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:93:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, (long unsigned int)lc3_encoder_size(7500, 24000))’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:87:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:90:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:93:21: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:93:9: danger: ‘calloc(1, (long unsigned int)lc3_encoder_size(7500, 24000))’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
# 91| goto fail;
# 92|
# 93|-> this->enc = lc3_setup_encoder(7500, 24000, 0,
# 94| calloc(1, lc3_encoder_size(7500, 24000)));
# 95| if (!this->enc)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:93:21: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:87:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:89:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:90:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:93:21: danger: ‘this’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
# 91| goto fail;
# 92|
# 93|-> this->enc = lc3_setup_encoder(7500, 24000, 0,
# 94| calloc(1, lc3_encoder_size(7500, 24000)));
# 95| if (!this->enc)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:87:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:89:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:90:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: danger: ‘this’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
# 92|
# 93| this->enc = lc3_setup_encoder(7500, 24000, 0,
# 94|-> calloc(1, lc3_encoder_size(7500, 24000)));
# 95| if (!this->enc)
# 96| goto fail;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:98:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, (long unsigned int)lc3_decoder_size(7500, 24000))’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:87:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:90:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:95:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:99:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:98:21: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:98:9: danger: ‘calloc(1, (long unsigned int)lc3_decoder_size(7500, 24000))’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
# 96| goto fail;
# 97|
# 98|-> this->dec = lc3_setup_decoder(7500, 24000, 0,
# 99| calloc(1, lc3_decoder_size(7500, 24000)));
# 100| if (!this->dec)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:98:21: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:87:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:89:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:90:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:95:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:99:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:98:21: danger: ‘this’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
# 96| goto fail;
# 97|
# 98|-> this->dec = lc3_setup_decoder(7500, 24000, 0,
# 99| calloc(1, lc3_decoder_size(7500, 24000)));
# 100| if (!this->dec)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:99:35: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:87:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:89:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:90:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:95:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:99:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:99:35: danger: ‘this’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
# 97|
# 98| this->dec = lc3_setup_decoder(7500, 24000, 0,
# 99|-> calloc(1, lc3_decoder_size(7500, 24000)));
# 100| if (!this->dec)
# 101| goto fail;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:103:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:87:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:89:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:90:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:95:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:99:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:100:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:103:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:103:9: danger: ‘this’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
# 101| goto fail;
# 102|
# 103|-> spa_assert(lc3_frame_samples(7500, 24000) * sizeof(float) == LC3_A127_BLOCK_SIZE);
# 104|
# 105| this->prev_hwseq = -1;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:96:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, (long unsigned int)lc3_encoder_size(7500, 32000))’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:90:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:93:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:96:21: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:96:9: danger: ‘calloc(1, (long unsigned int)lc3_encoder_size(7500, 32000))’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
# 94| goto fail;
# 95|
# 96|-> this->enc = lc3_setup_encoder(7500, 32000, 0,
# 97| calloc(1, lc3_encoder_size(7500, 32000)));
# 98| if (!this->enc)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:96:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 104)’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:90:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:92:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:93:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:96:21: danger: ‘calloc(1, 104)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
# 94| goto fail;
# 95|
# 96|-> this->enc = lc3_setup_encoder(7500, 32000, 0,
# 97| calloc(1, lc3_encoder_size(7500, 32000)));
# 98| if (!this->enc)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 104)’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:90:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:92:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:93:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: danger: ‘calloc(1, 104)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
# 95|
# 96| this->enc = lc3_setup_encoder(7500, 32000, 0,
# 97|-> calloc(1, lc3_encoder_size(7500, 32000)));
# 98| if (!this->enc)
# 99| goto fail;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:101:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, (long unsigned int)lc3_decoder_size(7500, 32000))’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:90:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:93:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:98:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:102:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:101:21: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:101:9: danger: ‘calloc(1, (long unsigned int)lc3_decoder_size(7500, 32000))’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
# 99| goto fail;
# 100|
# 101|-> this->dec = lc3_setup_decoder(7500, 32000, 0,
# 102| calloc(1, lc3_decoder_size(7500, 32000)));
# 103| if (!this->dec)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:101:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 104)’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:90:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:92:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:93:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:98:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:102:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:101:21: danger: ‘calloc(1, 104)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
# 99| goto fail;
# 100|
# 101|-> this->dec = lc3_setup_decoder(7500, 32000, 0,
# 102| calloc(1, lc3_decoder_size(7500, 32000)));
# 103| if (!this->dec)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:102:35: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 104)’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:90:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:92:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:93:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:98:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:102:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:102:35: danger: ‘calloc(1, 104)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
# 100|
# 101| this->dec = lc3_setup_decoder(7500, 32000, 0,
# 102|-> calloc(1, lc3_decoder_size(7500, 32000)));
# 103| if (!this->dec)
# 104| goto fail;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:106:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 104)’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:90:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:92:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:93:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:98:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:102:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:103:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:106:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:106:9: danger: ‘calloc(1, 104)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
# 104| goto fail;
# 105|
# 106|-> spa_assert(lc3_frame_samples(7500, 32000) * sizeof(float) == LC3_SWB_BLOCK_SIZE);
# 107|
# 108| h2_reader_init(&this->h2, false);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:321:13: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:291:14: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:292:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:295:18: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:321:13: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 319| io->codec = transport->media_codec;
# 320|
# 321|-> if (io->codec->validate_config(io->codec, 0, NULL, 0, &format) < 0)
# 322| return NULL;
# 323|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:324:26: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:291:14: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:292:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:295:18: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:321:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:324:26: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:324:26: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 322| return NULL;
# 323|
# 324|-> io->codec_data = io->codec->init(io->codec, 0, NULL, 0, &format, NULL, transport->write_mtu);
# 325| if (!io->codec_data)
# 326| return NULL;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:328:9: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:283:23: enter_function: entry to ‘spa_bt_sco_io_create’
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:291:14: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:292:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:295:18: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:321:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:324:26: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:325:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:328:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:328:9: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘spa_bt_sco_io_create’
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:328:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:328:9: danger: ‘io’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
# 326| return NULL;
# 327|
# 328|-> spa_log_debug(io->log, "%p: initial packet size:%d", io, (int)io->read_size);
# 329|
# 330| spa_bt_recvmsg_init(&io->recv, io->fd, io->data_system, io->log);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:94:16: warning[-Wanalyzer-malloc-leak]: leak of ‘conv’
pipewire-1.5.81/spa/plugins/filter-graph/convolver.c:261:19: enter_function: entry to ‘convolver_new’
pipewire-1.5.81/spa/plugins/filter-graph/convolver.c:266:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/convolver.c:269:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/convolver.c:277:12: branch_false: following ‘false’ branch (when ‘conv’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/convolver.c:280:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/convolver.c:282:12: branch_false: following ‘false’ branch (when ‘irlen != 0’)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/convolver.c:289:31: call_function: calling ‘convolver1_new’ from ‘convolver_new’
# 92| static inline void *spa_fga_dsp_fft_new(struct spa_fga_dsp *obj, uint32_t size, bool real)
# 93| {
# 94|-> return spa_api_method_r(void *, NULL, spa_fga_dsp, &obj->iface, fft_new, 0,
# 95| size, real);
# 96| }
Error: COMPILER_WARNING (CWE-252):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_builtin.c: scope_hint: In function ‘do_exec’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_builtin.c:2644:9: warning[-Wunused-result]: ignoring return value of ‘pipe2’ declared with attribute ‘warn_unused_result’
# 2644 | pipe2(stdin_pipe, 0);
# | ^~~~~~~~~~~~~~~~~~~~
# 2642| argv[argc++] = NULL;
# 2643|
# 2644|-> pipe2(stdin_pipe, 0);
# 2645| pipe2(stdout_pipe, 0);
# 2646|
Error: COMPILER_WARNING (CWE-252):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_builtin.c:2645:9: warning[-Wunused-result]: ignoring return value of ‘pipe2’ declared with attribute ‘warn_unused_result’
# 2645 | pipe2(stdout_pipe, 0);
# | ^~~~~~~~~~~~~~~~~~~~~
# 2643|
# 2644| pipe2(stdin_pipe, 0);
# 2645|-> pipe2(stdout_pipe, 0);
# 2646|
# 2647| impl->write_fd = stdin_pipe[1];
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:99:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:71:15: enter_function: entry to ‘ebur128_instantiate’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:82:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:83:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:88:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:95:12: branch_false: following ‘false’ branch (when ‘config’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:98:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:98:13: call_function: inlined call to ‘spa_json_begin_object’ from ‘ebur128_instantiate’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:98:13: call_function: inlined call to ‘spa_json_begin_object’ from ‘ebur128_instantiate’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:98:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:99:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:99:17: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘ebur128_instantiate’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:99:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:99:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
# 97|
# 98| if (spa_json_begin_object(&it[0], config, strlen(config)) <= 0) {
# 99|-> spa_log_error(pl->log, "ebur128: expected object in config");
# 100| errno = EINVAL;
# 101| goto error;
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dd
# 109| static void ladspa_port_update_ranges(struct descriptor *dd, struct spa_fga_port *port)
# 110| {
# 111|-> const LADSPA_Descriptor *d = dd->d;
# 112| unsigned long p = port->index;
# 113| LADSPA_PortRangeHintDescriptor hint = d->PortRangeHints[p].HintDescriptor;
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:152: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 150|
# 151| desc = calloc(1, sizeof(*desc));
# 152|-> desc->d = d;
# 153|
# 154| desc->desc.instantiate = ladspa_instantiate;
Error: GCC_ANALYZER_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:152:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:140:41: enter_function: entry to ‘ladspa_plugin_make_desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:147:13: call_function: calling ‘find_desc’ from ‘ladspa_plugin_make_desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:147:13: return_function: returning to ‘ladspa_plugin_make_desc’ from ‘find_desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:148:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:151:16: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:151:16: acquire_memory: this call could return NULL
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:152:9: danger: ‘desc’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
# 150|
# 151| desc = calloc(1, sizeof(*desc));
# 152|-> desc->d = d;
# 153|
# 154| desc->desc.instantiate = ladspa_instantiate;
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:154: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 152| desc->d = d;
# 153|
# 154|-> desc->desc.instantiate = ladspa_instantiate;
# 155| desc->desc.cleanup = d->cleanup;
# 156| desc->desc.connect_port = (__typeof__(desc->desc.connect_port))d->connect_port;
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:155: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 153|
# 154| desc->desc.instantiate = ladspa_instantiate;
# 155|-> desc->desc.cleanup = d->cleanup;
# 156| desc->desc.connect_port = (__typeof__(desc->desc.connect_port))d->connect_port;
# 157| desc->desc.activate = d->activate;
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:156: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 154| desc->desc.instantiate = ladspa_instantiate;
# 155| desc->desc.cleanup = d->cleanup;
# 156|-> desc->desc.connect_port = (__typeof__(desc->desc.connect_port))d->connect_port;
# 157| desc->desc.activate = d->activate;
# 158| desc->desc.deactivate = d->deactivate;
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:157: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 155| desc->desc.cleanup = d->cleanup;
# 156| desc->desc.connect_port = (__typeof__(desc->desc.connect_port))d->connect_port;
# 157|-> desc->desc.activate = d->activate;
# 158| desc->desc.deactivate = d->deactivate;
# 159| desc->desc.run = d->run;
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:158: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 156| desc->desc.connect_port = (__typeof__(desc->desc.connect_port))d->connect_port;
# 157| desc->desc.activate = d->activate;
# 158|-> desc->desc.deactivate = d->deactivate;
# 159| desc->desc.run = d->run;
# 160|
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:159: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 157| desc->desc.activate = d->activate;
# 158| desc->desc.deactivate = d->deactivate;
# 159|-> desc->desc.run = d->run;
# 160|
# 161| desc->desc.free = ladspa_free;
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:161: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 159| desc->desc.run = d->run;
# 160|
# 161|-> desc->desc.free = ladspa_free;
# 162|
# 163| desc->desc.name = d->Label;
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:163: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 161| desc->desc.free = ladspa_free;
# 162|
# 163|-> desc->desc.name = d->Label;
# 164| desc->desc.flags = 0;
# 165|
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:164: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 162|
# 163| desc->desc.name = d->Label;
# 164|-> desc->desc.flags = 0;
# 165|
# 166| desc->desc.n_ports = d->PortCount;
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:166: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 164| desc->desc.flags = 0;
# 165|
# 166|-> desc->desc.n_ports = d->PortCount;
# 167| desc->desc.ports = calloc(desc->desc.n_ports, sizeof(struct spa_fga_port));
# 168|
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:167: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 165|
# 166| desc->desc.n_ports = d->PortCount;
# 167|-> desc->desc.ports = calloc(desc->desc.n_ports, sizeof(struct spa_fga_port));
# 168|
# 169| for (i = 0; i < desc->desc.n_ports; i++) {
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:169: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 167| desc->desc.ports = calloc(desc->desc.n_ports, sizeof(struct spa_fga_port));
# 168|
# 169|-> for (i = 0; i < desc->desc.n_ports; i++) {
# 170| desc->desc.ports[i].index = i;
# 171| desc->desc.ports[i].name = d->PortNames[i];
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:170: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 168|
# 169| for (i = 0; i < desc->desc.n_ports; i++) {
# 170|-> desc->desc.ports[i].index = i;
# 171| desc->desc.ports[i].name = d->PortNames[i];
# 172| desc->desc.ports[i].flags = d->PortDescriptors[i];
Error: GCC_ANALYZER_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:170:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(*<unknown>.PortCount & 4294967295, 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:140:41: enter_function: entry to ‘ladspa_plugin_make_desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:147:13: call_function: calling ‘find_desc’ from ‘ladspa_plugin_make_desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:147:13: return_function: returning to ‘ladspa_plugin_make_desc’ from ‘find_desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:148:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:151:16: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:167:28: acquire_memory: this call could return NULL
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:169:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:170:33: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:170:17: danger: ‘calloc(*<unknown>.PortCount & 4294967295, 48) + (long unsigned int)i * 48’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
# 168|
# 169| for (i = 0; i < desc->desc.n_ports; i++) {
# 170|-> desc->desc.ports[i].index = i;
# 171| desc->desc.ports[i].name = d->PortNames[i];
# 172| desc->desc.ports[i].flags = d->PortDescriptors[i];
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:171: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 169| for (i = 0; i < desc->desc.n_ports; i++) {
# 170| desc->desc.ports[i].index = i;
# 171|-> desc->desc.ports[i].name = d->PortNames[i];
# 172| desc->desc.ports[i].flags = d->PortDescriptors[i];
# 173| ladspa_port_update_ranges(desc, &desc->desc.ports[i]);
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:172: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
# 170| desc->desc.ports[i].index = i;
# 171| desc->desc.ports[i].name = d->PortNames[i];
# 172|-> desc->desc.ports[i].flags = d->PortDescriptors[i];
# 173| ladspa_port_update_ranges(desc, &desc->desc.ports[i]);
# 174| }
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:175:16: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:140:41: enter_function: entry to ‘ladspa_plugin_make_desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:147:13: call_function: calling ‘find_desc’ from ‘ladspa_plugin_make_desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:147:13: return_function: returning to ‘ladspa_plugin_make_desc’ from ‘find_desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:148:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:151:16: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:151:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:169:21: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:175:16: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:175:16: danger: ‘desc’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
# 173| ladspa_port_update_ranges(desc, &desc->desc.ports[i]);
# 174| }
# 175|-> return &desc->desc;
# 176| }
# 177|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:13: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:374:13: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:375:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:378:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:13: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 390| i->features[n_features++] = &buf_size_features[1];
# 391| i->features[n_features++] = &buf_size_features[2];
# 392|-> if (lilv_plugin_has_feature(p->p, c->worker_schedule)) {
# 393| i->work_schedule.handle = i;
# 394| i->work_schedule.schedule_work = work_schedule;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:374:13: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:375:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:378:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 399|
# 400| i->options[0] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
# 401|-> context_map(c, LV2_BUF_SIZE__minBlockLength), sizeof(int32_t),
# 402| c->atom_Int, &min_block_length };
# 403| i->options[1] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:404:17: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:374:13: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:375:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:378:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:404:17: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 402| c->atom_Int, &min_block_length };
# 403| i->options[1] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
# 404|-> context_map(c, LV2_BUF_SIZE__maxBlockLength), sizeof(int32_t),
# 405| c->atom_Int, &max_block_length };
# 406| i->options[2] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:407:17: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:374:13: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:375:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:378:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:407:17: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 405| c->atom_Int, &max_block_length };
# 406| i->options[2] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
# 407|-> context_map(c, LV2_BUF_SIZE__sequenceSize), sizeof(int32_t),
# 408| c->atom_Int, &seq_size };
# 409| i->options[3] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:410:17: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:374:13: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:375:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:378:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:410:17: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 408| c->atom_Int, &seq_size };
# 409| i->options[3] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
# 410|-> context_map(c, "http://lv2plug.in/ns/ext/buf-size#nominalBlockLength"), sizeof(int32_t),
# 411| c->atom_Int, &i->block_length },
# 412| i->options[4] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:413:17: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:374:13: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:375:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:378:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:413:17: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 411| c->atom_Int, &i->block_length },
# 412| i->options[4] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
# 413|-> context_map(c, LV2_PARAMETERS__sampleRate), sizeof(float),
# 414| c->atom_Float, &fsample_rate };
# 415| i->options[5] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0, 0, 0, 0, NULL };
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:423:23: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:374:13: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:375:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:378:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:423:23: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 421| spa_assert(n_features < SPA_N_ELEMENTS(i->features));
# 422|
# 423|-> i->instance = lilv_plugin_instantiate(p->p, SampleRate, i->features);
# 424| if (i->instance == NULL) {
# 425| free(i);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:524:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:524:30: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
# 522| desc->desc.flags = 0;
# 523|
# 524|-> desc->desc.n_ports = lilv_plugin_get_num_ports(p->p);
# 525| desc->desc.ports = calloc(desc->desc.n_ports, sizeof(struct spa_fga_port));
# 526|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:524:30: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:524:30: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 522| desc->desc.flags = 0;
# 523|
# 524|-> desc->desc.n_ports = lilv_plugin_get_num_ports(p->p);
# 525| desc->desc.ports = calloc(desc->desc.n_ports, sizeof(struct spa_fga_port));
# 526|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:531:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:531:18: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
# 529| controls = alloca(desc->desc.n_ports * sizeof(float));
# 530|
# 531|-> latent = lilv_plugin_has_latency(p->p);
# 532| latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
# 533|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:531:18: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:531:18: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
# 529| controls = alloca(desc->desc.n_ports * sizeof(float));
# 530|
# 531|-> latent = lilv_plugin_has_latency(p->p);
# 532| latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
# 533|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:531:18: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:531:18: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 529| controls = alloca(desc->desc.n_ports * sizeof(float));
# 530|
# 531|-> latent = lilv_plugin_has_latency(p->p);
# 532| latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
# 533|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
# 530|
# 531| latent = lilv_plugin_has_latency(p->p);
# 532|-> latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
# 533|
# 534| lilv_plugin_get_port_ranges_float(p->p, mins, maxes, controls);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
# 530|
# 531| latent = lilv_plugin_has_latency(p->p);
# 532|-> latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
# 533|
# 534| lilv_plugin_get_port_ranges_float(p->p, mins, maxes, controls);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 530|
# 531| latent = lilv_plugin_has_latency(p->p);
# 532|-> latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
# 533|
# 534| lilv_plugin_get_port_ranges_float(p->p, mins, maxes, controls);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:534:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:534:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
# 532| latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
# 533|
# 534|-> lilv_plugin_get_port_ranges_float(p->p, mins, maxes, controls);
# 535|
# 536| for (i = 0; i < desc->desc.n_ports; i++) {
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:534:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:534:9: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
# 532| latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
# 533|
# 534|-> lilv_plugin_get_port_ranges_float(p->p, mins, maxes, controls);
# 535|
# 536| for (i = 0; i < desc->desc.n_ports; i++) {
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:534:9: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:534:9: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 532| latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
# 533|
# 534|-> lilv_plugin_get_port_ranges_float(p->p, mins, maxes, controls);
# 535|
# 536| for (i = 0; i < desc->desc.n_ports; i++) {
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
# 535|
# 536| for (i = 0; i < desc->desc.n_ports; i++) {
# 537|-> const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
# 538| const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
# 539| struct spa_fga_port *fp = &desc->desc.ports[i];
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
# 535|
# 536| for (i = 0; i < desc->desc.n_ports; i++) {
# 537|-> const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
# 538| const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
# 539| struct spa_fga_port *fp = &desc->desc.ports[i];
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
# 535|
# 536| for (i = 0; i < desc->desc.n_ports; i++) {
# 537|-> const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
# 538| const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
# 539| struct spa_fga_port *fp = &desc->desc.ports[i];
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
# 535|
# 536| for (i = 0; i < desc->desc.n_ports; i++) {
# 537|-> const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
# 538| const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
# 539| struct spa_fga_port *fp = &desc->desc.ports[i];
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538:42: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538:42: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
# 536| for (i = 0; i < desc->desc.n_ports; i++) {
# 537| const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
# 538|-> const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
# 539| struct spa_fga_port *fp = &desc->desc.ports[i];
# 540|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538:42: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538:42: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/2)
# 536| for (i = 0; i < desc->desc.n_ports; i++) {
# 537| const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
# 538|-> const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
# 539| struct spa_fga_port *fp = &desc->desc.ports[i];
# 540|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538:42: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538:42: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
# 536| for (i = 0; i < desc->desc.n_ports; i++) {
# 537| const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
# 538|-> const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
# 539| struct spa_fga_port *fp = &desc->desc.ports[i];
# 540|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538:42: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538:42: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
# 536| for (i = 0; i < desc->desc.n_ports; i++) {
# 537| const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
# 538|-> const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
# 539| struct spa_fga_port *fp = &desc->desc.ports[i];
# 540|
Error: GCC_ANALYZER_WARNING (CWE-476):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:541:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: this call could return NULL
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:541:17: danger: ‘fp’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
# 539| struct spa_fga_port *fp = &desc->desc.ports[i];
# 540|
# 541|-> fp->index = i;
# 542| fp->name = strdup(lilv_node_as_string(symbol));
# 543|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542:28: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/2)
# 540|
# 541| fp->index = i;
# 542|-> fp->name = strdup(lilv_node_as_string(symbol));
# 543|
# 544| fp->flags = 0;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542:28: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542:28: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/2)
# 540|
# 541| fp->index = i;
# 542|-> fp->name = strdup(lilv_node_as_string(symbol));
# 543|
# 544| fp->flags = 0;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542:28: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542:28: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
# 540|
# 541| fp->index = i;
# 542|-> fp->name = strdup(lilv_node_as_string(symbol));
# 543|
# 544| fp->flags = 0;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542:28: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/2)
# 540|
# 541| fp->index = i;
# 542|-> fp->name = strdup(lilv_node_as_string(symbol));
# 543|
# 544| fp->flags = 0;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/2)
# 543|
# 544| fp->flags = 0;
# 545|-> if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
# 546| fp->flags |= SPA_FGA_PORT_INPUT;
# 547| if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545:21: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
# 543|
# 544| fp->flags = 0;
# 545|-> if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
# 546| fp->flags |= SPA_FGA_PORT_INPUT;
# 547| if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545:21: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545:21: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
# 543|
# 544| fp->flags = 0;
# 545|-> if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
# 546| fp->flags |= SPA_FGA_PORT_INPUT;
# 547| if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545:21: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/2)
# 543|
# 544| fp->flags = 0;
# 545|-> if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
# 546| fp->flags |= SPA_FGA_PORT_INPUT;
# 547| if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/2)
# 545| if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
# 546| fp->flags |= SPA_FGA_PORT_INPUT;
# 547|-> if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
# 548| fp->flags |= SPA_FGA_PORT_OUTPUT;
# 549| if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547:21: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/2)
# 545| if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
# 546| fp->flags |= SPA_FGA_PORT_INPUT;
# 547|-> if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
# 548| fp->flags |= SPA_FGA_PORT_OUTPUT;
# 549| if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547:21: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547:21: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
# 545| if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
# 546| fp->flags |= SPA_FGA_PORT_INPUT;
# 547|-> if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
# 548| fp->flags |= SPA_FGA_PORT_OUTPUT;
# 549| if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547:21: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/2)
# 545| if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
# 546| fp->flags |= SPA_FGA_PORT_INPUT;
# 547|-> if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
# 548| fp->flags |= SPA_FGA_PORT_OUTPUT;
# 549| if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/2)
# 547| if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
# 548| fp->flags |= SPA_FGA_PORT_OUTPUT;
# 549|-> if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
# 550| fp->flags |= SPA_FGA_PORT_CONTROL;
# 551| if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549:21: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/2)
# 547| if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
# 548| fp->flags |= SPA_FGA_PORT_OUTPUT;
# 549|-> if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
# 550| fp->flags |= SPA_FGA_PORT_CONTROL;
# 551| if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549:21: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549:21: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
# 547| if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
# 548| fp->flags |= SPA_FGA_PORT_OUTPUT;
# 549|-> if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
# 550| fp->flags |= SPA_FGA_PORT_CONTROL;
# 551| if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549:21: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/2)
# 547| if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
# 548| fp->flags |= SPA_FGA_PORT_OUTPUT;
# 549|-> if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
# 550| fp->flags |= SPA_FGA_PORT_CONTROL;
# 551| if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/2)
# 549| if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
# 550| fp->flags |= SPA_FGA_PORT_CONTROL;
# 551|-> if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
# 552| fp->flags |= SPA_FGA_PORT_AUDIO;
# 553| if (lilv_port_has_property(p->p, port, c->lv2_Optional))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551:21: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/2)
# 549| if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
# 550| fp->flags |= SPA_FGA_PORT_CONTROL;
# 551|-> if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
# 552| fp->flags |= SPA_FGA_PORT_AUDIO;
# 553| if (lilv_port_has_property(p->p, port, c->lv2_Optional))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551:21: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551:21: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/0)
# 549| if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
# 550| fp->flags |= SPA_FGA_PORT_CONTROL;
# 551|-> if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
# 552| fp->flags |= SPA_FGA_PORT_AUDIO;
# 553| if (lilv_port_has_property(p->p, port, c->lv2_Optional))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551:21: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/2)
# 549| if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
# 550| fp->flags |= SPA_FGA_PORT_CONTROL;
# 551|-> if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
# 552| fp->flags |= SPA_FGA_PORT_AUDIO;
# 553| if (lilv_port_has_property(p->p, port, c->lv2_Optional))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/2)
# 551| if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
# 552| fp->flags |= SPA_FGA_PORT_AUDIO;
# 553|-> if (lilv_port_has_property(p->p, port, c->lv2_Optional))
# 554| fp->flags |= SPA_FGA_PORT_SUPPORTS_NULL_DATA;
# 555|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553:21: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/2)
# 551| if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
# 552| fp->flags |= SPA_FGA_PORT_AUDIO;
# 553|-> if (lilv_port_has_property(p->p, port, c->lv2_Optional))
# 554| fp->flags |= SPA_FGA_PORT_SUPPORTS_NULL_DATA;
# 555|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553:21: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553:21: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/0)
# 551| if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
# 552| fp->flags |= SPA_FGA_PORT_AUDIO;
# 553|-> if (lilv_port_has_property(p->p, port, c->lv2_Optional))
# 554| fp->flags |= SPA_FGA_PORT_SUPPORTS_NULL_DATA;
# 555|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553:21: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/2)
# 551| if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
# 552| fp->flags |= SPA_FGA_PORT_AUDIO;
# 553|-> if (lilv_port_has_property(p->p, port, c->lv2_Optional))
# 554| fp->flags |= SPA_FGA_PORT_SUPPORTS_NULL_DATA;
# 555|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:564:16: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:564:16: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:564:16: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/0)
# 562| fp->def = controls[i];
# 563| }
# 564|-> return &desc->desc;
# 565| }
# 566|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:230:9: warning[-Wanalyzer-malloc-leak]: leak of ‘left_ir’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:218:13: enter_function: entry to ‘spatializer_reload’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:221:26: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:228:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:230:9: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘spatializer_reload’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:230:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:230:9: danger: ‘left_ir’ leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
# 228| coords[i] = impl->port[3 + i][0];
# 229|
# 230|-> spa_log_info(impl->log, "making spatializer with %f %f %f", coords[0], coords[1], coords[2]);
# 231|
# 232| mysofa_s2c(coords);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:230:9: warning[-Wanalyzer-malloc-leak]: leak of ‘right_ir’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:218:13: enter_function: entry to ‘spatializer_reload’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:222:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:228:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:230:9: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘spatializer_reload’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:230:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:230:9: danger: ‘right_ir’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
# 228| coords[i] = impl->port[3 + i][0];
# 229|
# 230|-> spa_log_info(impl->log, "making spatializer with %f %f %f", coords[0], coords[1], coords[2]);
# 231|
# 232| mysofa_s2c(coords);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:232:9: warning[-Wanalyzer-malloc-leak]: leak of ‘left_ir’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:221:26: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:228:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:232:9: danger: ‘left_ir’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 230| spa_log_info(impl->log, "making spatializer with %f %f %f", coords[0], coords[1], coords[2]);
# 231|
# 232|-> mysofa_s2c(coords);
# 233| mysofa_getfilter_float(
# 234| impl->sofa,
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:232:9: warning[-Wanalyzer-malloc-leak]: leak of ‘right_ir’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:222:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:228:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:232:9: danger: ‘right_ir’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 230| spa_log_info(impl->log, "making spatializer with %f %f %f", coords[0], coords[1], coords[2]);
# 231|
# 232|-> mysofa_s2c(coords);
# 233| mysofa_getfilter_float(
# 234| impl->sofa,
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:233:9: warning[-Wanalyzer-malloc-leak]: leak of ‘left_ir’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:221:26: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:228:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:233:9: danger: ‘left_ir’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 231|
# 232| mysofa_s2c(coords);
# 233|-> mysofa_getfilter_float(
# 234| impl->sofa,
# 235| coords[0],
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:233:9: warning[-Wanalyzer-malloc-leak]: leak of ‘right_ir’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:222:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:228:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:233:9: danger: ‘right_ir’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 231|
# 232| mysofa_s2c(coords);
# 233|-> mysofa_getfilter_float(
# 234| impl->sofa,
# 235| coords[0],
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/support/loop.c:1302: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1300|
# 1301| if (impl->enter_count != 0)
# 1302|-> spa_log_warn(impl->log, "%p: loop is entered %d times",
# 1303| impl, impl->enter_count);
# 1304|
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/support/loop.c:1386: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1384|
# 1385| CHECK(pthread_mutexattr_init(&attr), error_exit);
# 1386|-> CHECK(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE), error_exit_free_attr);
# 1387| if (impl->prio_inherit)
# 1388| CHECK(pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT),
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/support/loop.c:1388: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1386| CHECK(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE), error_exit_free_attr);
# 1387| if (impl->prio_inherit)
# 1388|-> CHECK(pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT),
# 1389| error_exit_free_attr)
# 1390| CHECK(pthread_mutex_init(&impl->lock, &attr), error_exit_free_attr);
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/support/loop.c:1390: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1388| CHECK(pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT),
# 1389| error_exit_free_attr)
# 1390|-> CHECK(pthread_mutex_init(&impl->lock, &attr), error_exit_free_attr);
# 1391| pthread_mutexattr_destroy(&attr);
# 1392|
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/support/loop.c:1393: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1391| pthread_mutexattr_destroy(&attr);
# 1392|
# 1393|-> CHECK(pthread_condattr_init(&cattr), error_exit_free_mutex);
# 1394| CHECK(pthread_condattr_setclock(&cattr, CLOCK_REALTIME), error_exit_free_mutex);
# 1395|
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/support/loop.c:1394: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1392|
# 1393| CHECK(pthread_condattr_init(&cattr), error_exit_free_mutex);
# 1394|-> CHECK(pthread_condattr_setclock(&cattr, CLOCK_REALTIME), error_exit_free_mutex);
# 1395|
# 1396| CHECK(pthread_cond_init(&impl->cond, &cattr), error_exit_free_mutex);
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/support/loop.c:1396: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1394| CHECK(pthread_condattr_setclock(&cattr, CLOCK_REALTIME), error_exit_free_mutex);
# 1395|
# 1396|-> CHECK(pthread_cond_init(&impl->cond, &cattr), error_exit_free_mutex);
# 1397| CHECK(pthread_cond_init(&impl->accept_cond, &cattr), error_exit_free_mutex);
# 1398| pthread_condattr_destroy(&cattr);
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/support/loop.c:1397: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1395|
# 1396| CHECK(pthread_cond_init(&impl->cond, &cattr), error_exit_free_mutex);
# 1397|-> CHECK(pthread_cond_init(&impl->accept_cond, &cattr), error_exit_free_mutex);
# 1398| pthread_condattr_destroy(&cattr);
# 1399|
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/spa/plugins/support/node-driver.c:355: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 353| return;
# 354| } else if (res == -ECANCELED) {
# 355|-> spa_log_debug(this->log, "%p: timer was canceled; "
# 356| "rescheduling graph cycle", this);
# 357| timer_was_canceled = true;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/spa/tests/benchmark-aec.c:111:24: warning[-Wanalyzer-malloc-leak]: leak of ‘handle’
pipewire-1.5.81/spa/tests/benchmark-aec.c:302:5: enter_function: entry to ‘main’
pipewire-1.5.81/spa/tests/benchmark-aec.c:308:20: call_function: calling ‘init’ from ‘main’
# 109| "support/libspa-support.so",
# 110| SPA_NAME_SUPPORT_SYSTEM)) < 0)
# 111|-> return res;
# 112|
# 113| if ((res = spa_handle_get_interface(handle, SPA_TYPE_INTERFACE_System, &iface)) < 0) {
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/spa/tests/benchmark-aec.c:190: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: k
# 188| char *v = malloc(len + 1);
# 189|
# 190|-> memcpy(k, key, strlen(key) + 1);
# 191| spa_json_parse_stringn(value, len, v, len + 1);
# 192|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/spa/tests/benchmark-aec.c:281: warning[uninitvar]: Uninitialized variable: temp
# 279| }
# 280|
# 281|-> memcpy(data, temp, sizeof(temp));
# 282| }
# 283|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/spa/tests/benchmark-aec.c:294: warning[uninitvar]: Uninitialized variable: temp
# 292| }
# 293|
# 294|-> memcpy(data, temp, sizeof(temp));
# 295| }
# 296|
Error: COMPILER_WARNING (CWE-563):
pipewire-1.5.81/spa/tools/spa-json-dump.c: scope_hint: In function ‘show_usage’
pipewire-1.5.81/spa/tools/spa-json-dump.c:45:37: warning[-Wunused-parameter]: unused parameter ‘d’
# 45 | static void show_usage(struct data *d, const char *name, bool is_error)
# | ~~~~~~~~~~~~~^
# 43| };
# 44|
# 45|-> static void show_usage(struct data *d, const char *name, bool is_error)
# 46| {
# 47| FILE *fp;
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/tools/spa-json-dump.c: scope_hint: In function ‘process_stdin’
pipewire-1.5.81/spa/tools/spa-json-dump.c:228:50: warning[-Wformat=]: ISO C does not support the ‘%m’ gnu_printf format
# 228 | fprintf(stderr, "error: %m\n");
# | ^
# 226| p = realloc(buf, alloc);
# 227| if (!p) {
# 228|-> fprintf(stderr, "error: %m\n");
# 229| goto error;
# 230| }
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/tools/spa-json-dump.c:239:42: warning[-Wformat=]: ISO C does not support the ‘%m’ gnu_printf format
# 239 | fprintf(stderr, "error: %m\n");
# | ^
# 237|
# 238| if (ferror(stdin)) {
# 239|-> fprintf(stderr, "error: %m\n");
# 240| goto error;
# 241| }
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/tools/spa-json-dump.c: scope_hint: In function ‘main’
pipewire-1.5.81/spa/tools/spa-json-dump.c:298:60: warning[-Wformat=]: ISO C does not support the ‘%m’ gnu_printf format
# 298 | fprintf(stderr, "error opening file '%s': %m\n", d.filename);
# | ^
# 296|
# 297| if ((fd = open(d.filename, O_CLOEXEC | O_RDONLY)) < 0) {
# 298|-> fprintf(stderr, "error opening file '%s': %m\n", d.filename);
# 299| goto error;
# 300| }
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/tools/spa-json-dump.c:302:61: warning[-Wformat=]: ISO C does not support the ‘%m’ gnu_printf format
# 302 | fprintf(stderr, "error statting file '%s': %m\n", d.filename);
# | ^
# 300| }
# 301| if (fstat(fd, &sbuf) < 0) {
# 302|-> fprintf(stderr, "error statting file '%s': %m\n", d.filename);
# 303| goto error_close;
# 304| }
Error: COMPILER_WARNING:
pipewire-1.5.81/spa/tools/spa-json-dump.c:306:61: warning[-Wformat=]: ISO C does not support the ‘%m’ gnu_printf format
# 306 | fprintf(stderr, "error mmapping file '%s': %m\n", d.filename);
# | ^
# 304| }
# 305| if ((d.data = mmap(NULL, sbuf.st_size, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED) {
# 306|-> fprintf(stderr, "error mmapping file '%s': %m\n", d.filename);
# 307| goto error_close;
# 308| }
Error: COMPILER_WARNING (CWE-252):
pipewire-1.5.81/src/examples/video-src-sync.c: scope_hint: In function ‘on_process’
pipewire-1.5.81/src/examples/video-src-sync.c:134:17: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
# 134 | write(buf->datas[1].fd, &cmd, sizeof(cmd));
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 132| stl->release_point = data->seq;
# 133| /* write the acquire point */
# 134|-> write(buf->datas[1].fd, &cmd, sizeof(cmd));
# 135| }
# 136| pw_stream_queue_buffer(data->stream, b);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-avb/avb.c:44:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb/avb.c:20:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/avb.c:21:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/avb.c:24:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:44:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 42| impl->context = context;
# 43| impl->loop = pw_context_get_main_loop(context);
# 44|-> impl->timer_queue = pw_context_get_timer_queue(context);
# 45| impl->props = props;
# 46| impl->core = pw_context_get_object(context, PW_TYPE_INTERFACE_Core);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:486:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:495:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:550:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
# 484| {
# 485| const char *str;
# 486|-> if ((str = pw_properties_get(props, key)) != NULL) {
# 487| if (pw_properties_get(impl->capture_props, key) == NULL)
# 488| pw_properties_set(impl->capture_props, key, str);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 509| return -errno;
# 510|
# 511|-> pw_log_debug("module %p: new %s", impl, args);
# 512|
# 513| if (args)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:514:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:514:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:514:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 512|
# 513| if (args)
# 514|-> props = pw_properties_new_string(args);
# 515| else
# 516| props = pw_properties_new(NULL, NULL);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:516:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:516:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:516:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 514| props = pw_properties_new_string(args);
# 515| else
# 516|-> props = pw_properties_new(NULL, NULL);
# 517| if (props == NULL) {
# 518| res = -errno;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:519:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_true: following ‘true’ branch (when ‘props’ is NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:518:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:519:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:519:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:519:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 517| if (props == NULL) {
# 518| res = -errno;
# 519|-> pw_log_error( "can't create properties: %m");
# 520| goto error;
# 521| }
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 521| }
# 522|
# 523|-> impl->capture_props = pw_properties_new(NULL, NULL);
# 524| impl->playback_props = pw_properties_new(NULL, NULL);
# 525| if (impl->capture_props == NULL || impl->playback_props == NULL) {
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:524:32: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:524:32: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 522|
# 523| impl->capture_props = pw_properties_new(NULL, NULL);
# 524|-> impl->playback_props = pw_properties_new(NULL, NULL);
# 525| if (impl->capture_props == NULL || impl->playback_props == NULL) {
# 526| res = -errno;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:527:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:527:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:527:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:527:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 525| if (impl->capture_props == NULL || impl->playback_props == NULL) {
# 526| res = -errno;
# 527|-> pw_log_error( "can't create properties: %m");
# 528| goto error;
# 529| }
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:536:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:536:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 534| impl->latency[SPA_DIRECTION_OUTPUT] = SPA_LATENCY_INFO(SPA_DIRECTION_OUTPUT);
# 535|
# 536|-> if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
# 537| pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-%u-%u", pid, id);
# 538| if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:537:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:536:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:537:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:537:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 535|
# 536| if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
# 537|-> pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-%u-%u", pid, id);
# 538| if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
# 539| pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "filter-%u-%u", pid, id);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:538:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:538:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 536| if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
# 537| pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-%u-%u", pid, id);
# 538|-> if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
# 539| pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "filter-%u-%u", pid, id);
# 540| if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:539:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:538:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:539:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:539:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 537| pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-%u-%u", pid, id);
# 538| if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
# 539|-> pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "filter-%u-%u", pid, id);
# 540| if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 541| pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:540:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:540:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 538| if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
# 539| pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "filter-%u-%u", pid, id);
# 540|-> if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 541| pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 542| if (pw_properties_get(props, "resample.prefill") == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:541:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:540:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:541:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:541:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 539| pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "filter-%u-%u", pid, id);
# 540| if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 541|-> pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 542| if (pw_properties_get(props, "resample.prefill") == NULL)
# 543| pw_properties_set(props, "resample.prefill", "true");
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:542:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:542:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
# 540| if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 541| pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 542|-> if (pw_properties_get(props, "resample.prefill") == NULL)
# 543| pw_properties_set(props, "resample.prefill", "true");
# 544|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:543:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:542:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:543:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:543:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 541| pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 542| if (pw_properties_get(props, "resample.prefill") == NULL)
# 543|-> pw_properties_set(props, "resample.prefill", "true");
# 544|
# 545| if ((str = pw_properties_get(props, "capture.props")) != NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:545:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:545:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
# 543| pw_properties_set(props, "resample.prefill", "true");
# 544|
# 545|-> if ((str = pw_properties_get(props, "capture.props")) != NULL)
# 546| pw_properties_update_string(impl->capture_props, str, strlen(str));
# 547| if ((str = pw_properties_get(props, "playback.props")) != NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:546:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:545:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:546:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:546:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 544|
# 545| if ((str = pw_properties_get(props, "capture.props")) != NULL)
# 546|-> pw_properties_update_string(impl->capture_props, str, strlen(str));
# 547| if ((str = pw_properties_get(props, "playback.props")) != NULL)
# 548| pw_properties_update_string(impl->playback_props, str, strlen(str));
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:547:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:547:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
# 545| if ((str = pw_properties_get(props, "capture.props")) != NULL)
# 546| pw_properties_update_string(impl->capture_props, str, strlen(str));
# 547|-> if ((str = pw_properties_get(props, "playback.props")) != NULL)
# 548| pw_properties_update_string(impl->playback_props, str, strlen(str));
# 549|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-example-filter.c:548:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:547:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:548:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:548:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
# 546| pw_properties_update_string(impl->capture_props, str, strlen(str));
# 547| if ((str = pw_properties_get(props, "playback.props")) != NULL)
# 548|-> pw_properties_update_string(impl->playback_props, str, strlen(str));
# 549|
# 550| copy_props(impl, props, PW_KEY_AUDIO_RATE);
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:980: error[uninitvar]: Uninitialized variable: csize
# 978| return -EINVAL;
# 979|
# 980|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 981| return -EINVAL;
# 982|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:980: error[uninitvar]: Uninitialized variable: ctype
# 978| return -EINVAL;
# 979|
# 980|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 981| return -EINVAL;
# 982|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1241: error[uninitvar]: Uninitialized variable: csize
# 1239| return -EINVAL;
# 1240|
# 1241|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1242| return -EINVAL;
# 1243|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1241: error[uninitvar]: Uninitialized variable: ctype
# 1239| return -EINVAL;
# 1240|
# 1241|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1242| return -EINVAL;
# 1243|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1465: error[uninitvar]: Uninitialized variable: csize
# 1463| return -EINVAL;
# 1464|
# 1465|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1466| return -EINVAL;
# 1467|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1465: error[uninitvar]: Uninitialized variable: ctype
# 1463| return -EINVAL;
# 1464|
# 1465|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1466| return -EINVAL;
# 1467|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:753:26: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:734:20: enter_function: entry to ‘pw_manager_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:739:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:740:12: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:743:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:744:28: call_function: calling ‘pw_core_get_registry’ from ‘pw_manager_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:744:28: return_function: returning to ‘pw_manager_new’ from ‘pw_core_get_registry’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:746:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:751:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:753:26: danger: ‘m’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
# 751| context = pw_core_get_context(core);
# 752| m->loop = pw_context_get_main_loop(context);
# 753|-> m->timer_queue = pw_context_get_timer_queue(context);
# 754|
# 755| spa_hook_list_init(&m->hooks);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5525:27: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5525:27: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
# 5523| spa_list_init(&impl->free_messages);
# 5524|
# 5525|-> impl->main_loop = pw_context_get_main_loop(context);
# 5526| impl->work_queue = pw_context_get_work_queue(context);
# 5527| impl->timer_queue = pw_context_get_timer_queue(context);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5525:27: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5525:27: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
# 5523| spa_list_init(&impl->free_messages);
# 5524|
# 5525|-> impl->main_loop = pw_context_get_main_loop(context);
# 5526| impl->work_queue = pw_context_get_work_queue(context);
# 5527| impl->timer_queue = pw_context_get_timer_queue(context);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5527:29: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5527:29: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
# 5525| impl->main_loop = pw_context_get_main_loop(context);
# 5526| impl->work_queue = pw_context_get_work_queue(context);
# 5527|-> impl->timer_queue = pw_context_get_timer_queue(context);
# 5528|
# 5529| if (props == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5527:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5527:29: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/1)
# 5525| impl->main_loop = pw_context_get_main_loop(context);
# 5526| impl->work_queue = pw_context_get_work_queue(context);
# 5527|-> impl->timer_queue = pw_context_get_timer_queue(context);
# 5528|
# 5529| if (props == NULL)
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-pulse-tunnel.c:852: warning[uninitvar]: Uninitialized variable: vols
# 850| spa_pod_builder_prop(&b, SPA_PROP_channelVolumes, 0);
# 851| spa_pod_builder_array(&b, sizeof(float), SPA_TYPE_Float,
# 852|-> channels, vols);
# 853| spa_pod_builder_prop(&b, SPA_PROP_softVolumes, 0);
# 854| spa_pod_builder_array(&b, sizeof(float), SPA_TYPE_Float,
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-pulse-tunnel.c:855: warning[uninitvar]: Uninitialized variable: soft_vols
# 853| spa_pod_builder_prop(&b, SPA_PROP_softVolumes, 0);
# 854| spa_pod_builder_array(&b, sizeof(float), SPA_TYPE_Float,
# 855|-> channels, soft_vols);
# 856| param = spa_pod_builder_pop(&b, &f[0]);
# 857|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1741:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1748:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1900:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
# 1739| {
# 1740| const char *str;
# 1741|-> if ((str = pw_properties_get(props, key)) != NULL) {
# 1742| if (pw_properties_get(impl->stream_props, key) == NULL)
# 1743| pw_properties_set(impl->stream_props, key, str);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1742:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1748:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1900:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
# 1740| const char *str;
# 1741| if ((str = pw_properties_get(props, key)) != NULL) {
# 1742|-> if (pw_properties_get(impl->stream_props, key) == NULL)
# 1743| pw_properties_set(impl->stream_props, key, str);
# 1744| }
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1743:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1748:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1900:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
# 1741| if ((str = pw_properties_get(props, key)) != NULL) {
# 1742| if (pw_properties_get(impl->stream_props, key) == NULL)
# 1743|-> pw_properties_set(impl->stream_props, key, str);
# 1744| }
# 1745| }
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1760| return -errno;
# 1761|
# 1762|-> pw_log_debug("module %p: new %s", impl, args);
# 1763| impl->server_fd = -1;
# 1764| impl->control_fd = -1;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1766:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1766:21: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1764| impl->control_fd = -1;
# 1765| impl->timing_fd = -1;
# 1766|-> impl->ctx = EVP_CIPHER_CTX_new();
# 1767| if (impl->ctx == NULL) {
# 1768| res = -errno;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1769:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1768:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1769:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1769:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1769:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1767| if (impl->ctx == NULL) {
# 1768| res = -errno;
# 1769|-> pw_log_error( "can't create cipher context: %m");
# 1770| goto error;
# 1771| }
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1775:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1775:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 1773| args = "";
# 1774|
# 1775|-> props = pw_properties_new_string(args);
# 1776| if (props == NULL) {
# 1777| res = -errno;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1778:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1777:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1778:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1778:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1778:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 1776| if (props == NULL) {
# 1777| res = -errno;
# 1778|-> pw_log_error( "can't create properties: %m");
# 1779| goto error;
# 1780| }
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1783:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1783:30: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 1781| impl->props = props;
# 1782|
# 1783|-> impl->stream_props = pw_properties_new(NULL, NULL);
# 1784| if (impl->stream_props == NULL) {
# 1785| res = -errno;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1786:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1785:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1786:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1786:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1786:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 1784| if (impl->stream_props == NULL) {
# 1785| res = -errno;
# 1786|-> pw_log_error( "can't create properties: %m");
# 1787| goto error;
# 1788| }
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1792:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1792:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 1790| impl->module = module;
# 1791| impl->context = context;
# 1792|-> impl->loop = pw_context_get_main_loop(context);
# 1793| impl->timer_queue = pw_context_get_timer_queue(context);
# 1794|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1793:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1793:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 1791| impl->context = context;
# 1792| impl->loop = pw_context_get_main_loop(context);
# 1793|-> impl->timer_queue = pw_context_get_timer_queue(context);
# 1794|
# 1795| ip = pw_properties_get(props, "raop.ip");
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1795:14: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1795:14: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 1793| impl->timer_queue = pw_context_get_timer_queue(context);
# 1794|
# 1795|-> ip = pw_properties_get(props, "raop.ip");
# 1796| port = pw_properties_get(props, "raop.port");
# 1797| if (ip == NULL || port == NULL) {
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1796:16: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1796:16: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 1794|
# 1795| ip = pw_properties_get(props, "raop.ip");
# 1796|-> port = pw_properties_get(props, "raop.port");
# 1797| if (ip == NULL || port == NULL) {
# 1798| pw_log_error("Missing raop.ip or raop.port");
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1798:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1798:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1798:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1798:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1798:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
# 1796| port = pw_properties_get(props, "raop.port");
# 1797| if (ip == NULL || port == NULL) {
# 1798|-> pw_log_error("Missing raop.ip or raop.port");
# 1799| res = -EINVAL;
# 1800| goto error;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1801| }
# 1802|
# 1803|-> if ((str = pw_properties_get(props, "raop.transport")) == NULL)
# 1804| str = "udp";
# 1805| if (spa_streq(str, "udp")) {
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1812:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1805:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1808:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1808:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1812:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1812:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1812:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1812:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
# 1810| impl->psamples = FRAMES_PER_TCP_PACKET;
# 1811| } else {
# 1812|-> pw_log_error( "can't handle transport %s", str);
# 1813| res = -EINVAL;
# 1814| goto error;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1817:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1817:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 1815| }
# 1816|
# 1817|-> if ((str = pw_properties_get(props, "raop.encryption.type")) == NULL)
# 1818| str = "none";
# 1819| if (spa_streq(str, "none"))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1833:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1833:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
# 1831| }
# 1832|
# 1833|-> if ((str = pw_properties_get(props, "raop.audio.codec")) == NULL)
# 1834| str = "PCM";
# 1835| if (spa_streq(str, "PCM"))
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1840:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1835:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1837:18: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1837:17: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1840:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1840:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1840:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1840:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
# 1838| impl->codec = CODEC_ALAC;
# 1839| else {
# 1840|-> pw_log_error( "can't handle codec type %s", str);
# 1841| res = -EINVAL;
# 1842| goto error;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1844:15: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1844:15: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
# 1842| goto error;
# 1843| }
# 1844|-> str = pw_properties_get(props, "raop.password");
# 1845| impl->password = str ? strdup(str) : NULL;
# 1846|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1847:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1847:21: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/14)
# 1845| impl->password = str ? strdup(str) : NULL;
# 1846|
# 1847|-> if ((name = pw_properties_get(props, "raop.name")) == NULL)
# 1848| name = "RAOP";
# 1849|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1847:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1847:21: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
# 1845| impl->password = str ? strdup(str) : NULL;
# 1846|
# 1847|-> if ((name = pw_properties_get(props, "raop.name")) == NULL)
# 1848| name = "RAOP";
# 1849|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1855:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1855:25: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/14)
# 1853| name = str;
# 1854| }
# 1855|-> if ((hostname = pw_properties_get(props, "raop.hostname")) == NULL)
# 1856| hostname = name;
# 1857|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1855:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1855:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
# 1853| name = str;
# 1854| }
# 1855|-> if ((hostname = pw_properties_get(props, "raop.hostname")) == NULL)
# 1856| hostname = name;
# 1857|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1862:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1862:20: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/14)
# 1860| impl->stride = RAOP_STRIDE;
# 1861|
# 1862|-> if ((str = pw_properties_get(props, "raop.latency.ms")) == NULL)
# 1863| str = SPA_STRINGIFY(DEFAULT_LATENCY_MS);
# 1864| impl->latency = SPA_MAX(impl->latency, msec_to_samples(impl, atoi(str)));
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1862:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1862:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
# 1860| impl->stride = RAOP_STRIDE;
# 1861|
# 1862|-> if ((str = pw_properties_get(props, "raop.latency.ms")) == NULL)
# 1863| str = SPA_STRINGIFY(DEFAULT_LATENCY_MS);
# 1864| impl->latency = SPA_MAX(impl->latency, msec_to_samples(impl, atoi(str)));
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1866:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1866:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
# 1864| impl->latency = SPA_MAX(impl->latency, msec_to_samples(impl, atoi(str)));
# 1865|
# 1866|-> if (pw_properties_get(props, PW_KEY_AUDIO_FORMAT) == NULL)
# 1867| pw_properties_setf(props, PW_KEY_AUDIO_FORMAT, "%s", RAOP_FORMAT);
# 1868| if (pw_properties_get(props, PW_KEY_AUDIO_RATE) == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1867:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1866:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1867:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1867:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/14)
# 1865|
# 1866| if (pw_properties_get(props, PW_KEY_AUDIO_FORMAT) == NULL)
# 1867|-> pw_properties_setf(props, PW_KEY_AUDIO_FORMAT, "%s", RAOP_FORMAT);
# 1868| if (pw_properties_get(props, PW_KEY_AUDIO_RATE) == NULL)
# 1869| pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1867:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1866:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1867:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1867:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
# 1865|
# 1866| if (pw_properties_get(props, PW_KEY_AUDIO_FORMAT) == NULL)
# 1867|-> pw_properties_setf(props, PW_KEY_AUDIO_FORMAT, "%s", RAOP_FORMAT);
# 1868| if (pw_properties_get(props, PW_KEY_AUDIO_RATE) == NULL)
# 1869| pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1868:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1868:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
# 1866| if (pw_properties_get(props, PW_KEY_AUDIO_FORMAT) == NULL)
# 1867| pw_properties_setf(props, PW_KEY_AUDIO_FORMAT, "%s", RAOP_FORMAT);
# 1868|-> if (pw_properties_get(props, PW_KEY_AUDIO_RATE) == NULL)
# 1869| pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);
# 1870| if (pw_properties_get(props, PW_KEY_DEVICE_ICON_NAME) == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1869:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1868:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1869:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1869:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/14)
# 1867| pw_properties_setf(props, PW_KEY_AUDIO_FORMAT, "%s", RAOP_FORMAT);
# 1868| if (pw_properties_get(props, PW_KEY_AUDIO_RATE) == NULL)
# 1869|-> pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);
# 1870| if (pw_properties_get(props, PW_KEY_DEVICE_ICON_NAME) == NULL)
# 1871| pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1869:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1868:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1869:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1869:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
# 1867| pw_properties_setf(props, PW_KEY_AUDIO_FORMAT, "%s", RAOP_FORMAT);
# 1868| if (pw_properties_get(props, PW_KEY_AUDIO_RATE) == NULL)
# 1869|-> pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);
# 1870| if (pw_properties_get(props, PW_KEY_DEVICE_ICON_NAME) == NULL)
# 1871| pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1870:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1870:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
# 1868| if (pw_properties_get(props, PW_KEY_AUDIO_RATE) == NULL)
# 1869| pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);
# 1870|-> if (pw_properties_get(props, PW_KEY_DEVICE_ICON_NAME) == NULL)
# 1871| pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");
# 1872| if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1871:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1870:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1871:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1871:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/14)
# 1869| pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);
# 1870| if (pw_properties_get(props, PW_KEY_DEVICE_ICON_NAME) == NULL)
# 1871|-> pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");
# 1872| if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
# 1873| pw_properties_setf(props, PW_KEY_NODE_NAME, "raop_sink.%s.%s.%s",
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1871:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1870:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1871:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1871:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
# 1869| pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);
# 1870| if (pw_properties_get(props, PW_KEY_DEVICE_ICON_NAME) == NULL)
# 1871|-> pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");
# 1872| if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
# 1873| pw_properties_setf(props, PW_KEY_NODE_NAME, "raop_sink.%s.%s.%s",
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1872:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1872:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
# 1870| if (pw_properties_get(props, PW_KEY_DEVICE_ICON_NAME) == NULL)
# 1871| pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");
# 1872|-> if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
# 1873| pw_properties_setf(props, PW_KEY_NODE_NAME, "raop_sink.%s.%s.%s",
# 1874| hostname, ip, port);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1873:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1872:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1873:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1873:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/14)
# 1871| pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");
# 1872| if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
# 1873|-> pw_properties_setf(props, PW_KEY_NODE_NAME, "raop_sink.%s.%s.%s",
# 1874| hostname, ip, port);
# 1875| if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1873:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1872:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1873:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1873:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0)
# 1871| pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");
# 1872| if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
# 1873|-> pw_properties_setf(props, PW_KEY_NODE_NAME, "raop_sink.%s.%s.%s",
# 1874| hostname, ip, port);
# 1875| if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1875:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1875:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
# 1873| pw_properties_setf(props, PW_KEY_NODE_NAME, "raop_sink.%s.%s.%s",
# 1874| hostname, ip, port);
# 1875|-> if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
# 1876| pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RAOP to %s", name);
# 1877| if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1876:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1875:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1876:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1876:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/14)
# 1874| hostname, ip, port);
# 1875| if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
# 1876|-> pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RAOP to %s", name);
# 1877| if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
# 1878| pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1876:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1875:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1876:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1876:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
# 1874| hostname, ip, port);
# 1875| if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
# 1876|-> pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RAOP to %s", name);
# 1877| if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
# 1878| pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1877:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1877:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
# 1875| if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
# 1876| pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RAOP to %s", name);
# 1877|-> if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
# 1878| pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);
# 1879| if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1878:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1877:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1878:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1878:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/14)
# 1876| pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RAOP to %s", name);
# 1877| if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
# 1878|-> pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);
# 1879| if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL)
# 1880| pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%u/%u",
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1878:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1877:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1878:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1878:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
# 1876| pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RAOP to %s", name);
# 1877| if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
# 1878|-> pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);
# 1879| if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL)
# 1880| pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%u/%u",
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1879:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1879:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/0)
# 1877| if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
# 1878| pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);
# 1879|-> if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL)
# 1880| pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%u/%u",
# 1881| impl->psamples, impl->rate);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1880:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1879:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1880:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1880:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/14)
# 1878| pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);
# 1879| if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL)
# 1880|-> pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%u/%u",
# 1881| impl->psamples, impl->rate);
# 1882| if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1880:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1879:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1880:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1880:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/0)
# 1878| pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);
# 1879| if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL)
# 1880|-> pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%u/%u",
# 1881| impl->psamples, impl->rate);
# 1882| if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1882:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1882:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/0)
# 1880| pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%u/%u",
# 1881| impl->psamples, impl->rate);
# 1882|-> if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1883| pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1884| if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1883:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1882:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1883:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1883:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/14)
# 1881| impl->psamples, impl->rate);
# 1882| if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1883|-> pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1884| if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
# 1885| pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1883:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1882:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1883:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1883:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/0)
# 1881| impl->psamples, impl->rate);
# 1882| if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1883|-> pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1884| if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
# 1885| pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1884:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1884:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/0)
# 1882| if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1883| pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1884|-> if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
# 1885| pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
# 1886| if (pw_properties_get(props, "net.mtu") == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1885:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1884:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1885:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1885:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/14)
# 1883| pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1884| if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
# 1885|-> pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
# 1886| if (pw_properties_get(props, "net.mtu") == NULL)
# 1887| pw_properties_set(props, "net.mtu", "1448");
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1885:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1884:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1885:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1885:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/0)
# 1883| pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1884| if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
# 1885|-> pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
# 1886| if (pw_properties_get(props, "net.mtu") == NULL)
# 1887| pw_properties_set(props, "net.mtu", "1448");
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1886:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1886:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/0)
# 1884| if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
# 1885| pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
# 1886|-> if (pw_properties_get(props, "net.mtu") == NULL)
# 1887| pw_properties_set(props, "net.mtu", "1448");
# 1888| if (pw_properties_get(props, "rtp.sender-ts-offset") == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1887:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1886:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1887:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1887:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/14)
# 1885| pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
# 1886| if (pw_properties_get(props, "net.mtu") == NULL)
# 1887|-> pw_properties_set(props, "net.mtu", "1448");
# 1888| if (pw_properties_get(props, "rtp.sender-ts-offset") == NULL)
# 1889| pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1887:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1886:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1887:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1887:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/0)
# 1885| pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
# 1886| if (pw_properties_get(props, "net.mtu") == NULL)
# 1887|-> pw_properties_set(props, "net.mtu", "1448");
# 1888| if (pw_properties_get(props, "rtp.sender-ts-offset") == NULL)
# 1889| pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1888:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1888:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/0)
# 1886| if (pw_properties_get(props, "net.mtu") == NULL)
# 1887| pw_properties_set(props, "net.mtu", "1448");
# 1888|-> if (pw_properties_get(props, "rtp.sender-ts-offset") == NULL)
# 1889| pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);
# 1890| if (pw_properties_get(props, "sess.ts-direct") == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1889:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1888:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1889:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1889:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/14)
# 1887| pw_properties_set(props, "net.mtu", "1448");
# 1888| if (pw_properties_get(props, "rtp.sender-ts-offset") == NULL)
# 1889|-> pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);
# 1890| if (pw_properties_get(props, "sess.ts-direct") == NULL)
# 1891| pw_properties_setf(props, "sess.ts-direct", "%d", 0);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1889:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1888:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1889:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1889:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/0)
# 1887| pw_properties_set(props, "net.mtu", "1448");
# 1888| if (pw_properties_get(props, "rtp.sender-ts-offset") == NULL)
# 1889|-> pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);
# 1890| if (pw_properties_get(props, "sess.ts-direct") == NULL)
# 1891| pw_properties_setf(props, "sess.ts-direct", "%d", 0);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1890:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1890:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/0)
# 1888| if (pw_properties_get(props, "rtp.sender-ts-offset") == NULL)
# 1889| pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);
# 1890|-> if (pw_properties_get(props, "sess.ts-direct") == NULL)
# 1891| pw_properties_setf(props, "sess.ts-direct", "%d", 0);
# 1892| if (pw_properties_get(props, "sess.media") == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1891:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1890:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1891:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1891:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/14)
# 1889| pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);
# 1890| if (pw_properties_get(props, "sess.ts-direct") == NULL)
# 1891|-> pw_properties_setf(props, "sess.ts-direct", "%d", 0);
# 1892| if (pw_properties_get(props, "sess.media") == NULL)
# 1893| pw_properties_set(props, "sess.media", "raop");
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1891:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1890:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1891:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1891:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/0)
# 1889| pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);
# 1890| if (pw_properties_get(props, "sess.ts-direct") == NULL)
# 1891|-> pw_properties_setf(props, "sess.ts-direct", "%d", 0);
# 1892| if (pw_properties_get(props, "sess.media") == NULL)
# 1893| pw_properties_set(props, "sess.media", "raop");
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1892:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1892:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/0)
# 1890| if (pw_properties_get(props, "sess.ts-direct") == NULL)
# 1891| pw_properties_setf(props, "sess.ts-direct", "%d", 0);
# 1892|-> if (pw_properties_get(props, "sess.media") == NULL)
# 1893| pw_properties_set(props, "sess.media", "raop");
# 1894| if (pw_properties_get(props, "sess.latency.msec") == NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1893:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1892:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1893:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1893:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/14)
# 1891| pw_properties_setf(props, "sess.ts-direct", "%d", 0);
# 1892| if (pw_properties_get(props, "sess.media") == NULL)
# 1893|-> pw_properties_set(props, "sess.media", "raop");
# 1894| if (pw_properties_get(props, "sess.latency.msec") == NULL)
# 1895| pw_properties_setf(props, "sess.latency.msec", "%d", RAOP_LATENCY_MS);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1893:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1892:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1893:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1893:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/0)
# 1891| pw_properties_setf(props, "sess.ts-direct", "%d", 0);
# 1892| if (pw_properties_get(props, "sess.media") == NULL)
# 1893|-> pw_properties_set(props, "sess.media", "raop");
# 1894| if (pw_properties_get(props, "sess.latency.msec") == NULL)
# 1895| pw_properties_setf(props, "sess.latency.msec", "%d", RAOP_LATENCY_MS);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1894:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1894:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/0)
# 1892| if (pw_properties_get(props, "sess.media") == NULL)
# 1893| pw_properties_set(props, "sess.media", "raop");
# 1894|-> if (pw_properties_get(props, "sess.latency.msec") == NULL)
# 1895| pw_properties_setf(props, "sess.latency.msec", "%d", RAOP_LATENCY_MS);
# 1896|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1895:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1894:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1895:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1895:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/14)
# 1893| pw_properties_set(props, "sess.media", "raop");
# 1894| if (pw_properties_get(props, "sess.latency.msec") == NULL)
# 1895|-> pw_properties_setf(props, "sess.latency.msec", "%d", RAOP_LATENCY_MS);
# 1896|
# 1897| if ((str = pw_properties_get(props, "stream.props")) != NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1895:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1894:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1895:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1895:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/0)
# 1893| pw_properties_set(props, "sess.media", "raop");
# 1894| if (pw_properties_get(props, "sess.latency.msec") == NULL)
# 1895|-> pw_properties_setf(props, "sess.latency.msec", "%d", RAOP_LATENCY_MS);
# 1896|
# 1897| if ((str = pw_properties_get(props, "stream.props")) != NULL)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1897:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1897:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/0)
# 1895| pw_properties_setf(props, "sess.latency.msec", "%d", RAOP_LATENCY_MS);
# 1896|
# 1897|-> if ((str = pw_properties_get(props, "stream.props")) != NULL)
# 1898| pw_properties_update_string(impl->stream_props, str, strlen(str));
# 1899|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1898:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1897:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1898:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1898:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/14)
# 1896|
# 1897| if ((str = pw_properties_get(props, "stream.props")) != NULL)
# 1898|-> pw_properties_update_string(impl->stream_props, str, strlen(str));
# 1899|
# 1900| copy_props(impl, props, PW_KEY_AUDIO_FORMAT);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-raop-sink.c:1898:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1897:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1898:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1898:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/0)
# 1896|
# 1897| if ((str = pw_properties_get(props, "stream.props")) != NULL)
# 1898|-> pw_properties_update_string(impl->stream_props, str, strlen(str));
# 1899|
# 1900| copy_props(impl, props, PW_KEY_AUDIO_FORMAT);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-rt.c:1068:51: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rt.c:1062:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rt.c:1063:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rt.c:1066:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:1066:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rt.c:1068:36: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:1068:36: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rt.c:1068:51: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rt.c:1068:51: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 1066| pw_log_debug("module %p: new", impl);
# 1067|
# 1068|-> spa_autoptr(pw_properties) props = args ? pw_properties_new_string(args) : pw_properties_new(NULL, NULL);
# 1069| if (!props) {
# 1070| res = -errno;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-rt.c:1068:84: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rt.c:1062:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rt.c:1063:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rt.c:1066:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:1066:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rt.c:1068:36: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:1068:36: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.5.81/src/modules/module-rt.c:1068:84: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:1068:84: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 1066| pw_log_debug("module %p: new", impl);
# 1067|
# 1068|-> spa_autoptr(pw_properties) props = args ? pw_properties_new_string(args) : pw_properties_new(NULL, NULL);
# 1069| if (!props) {
# 1070| res = -errno;
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-rtp-sap.c:1809:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1881:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1980:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
# 1807| pw_core_disconnect(impl->core);
# 1808|
# 1809|-> pw_timer_queue_cancel(&impl->timer);
# 1810| if (impl->sap_source)
# 1811| pw_loop_destroy_source(impl->loop, impl->sap_source);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-rtp-sap.c:1889:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1889:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
# 1887| impl->module = module;
# 1888| impl->loop = pw_context_get_main_loop(context);
# 1889|-> impl->timer_queue = pw_context_get_timer_queue(context);
# 1890|
# 1891| str = pw_properties_get(props, "local.ifname");
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-rtp-session.c:589:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1644:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1753:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1808:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
# 587|
# 588| sess->impl->n_sessions--;
# 589|-> pw_timer_queue_cancel(&sess->timer);
# 590|
# 591| if (sess->send)
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-rtp-session.c:1688:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1688:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
# 1686| impl->loop = pw_context_get_main_loop(context);
# 1687| impl->data_loop = pw_context_acquire_loop(context, &props->dict);
# 1688|-> impl->timer_queue = pw_context_get_timer_queue(context);
# 1689|
# 1690| pw_properties_set(props, PW_KEY_NODE_LOOP_NAME, impl->data_loop->name);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-rtp-source.c:716:27: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:716:27: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
# 714| impl->module = module;
# 715| impl->context = context;
# 716|-> impl->main_loop = pw_context_get_main_loop(context);
# 717| impl->timer_queue = pw_context_get_timer_queue(context);
# 718| impl->data_loop = pw_context_acquire_loop(context, &props->dict);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-rtp-source.c:717:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:717:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 715| impl->context = context;
# 716| impl->main_loop = pw_context_get_main_loop(context);
# 717|-> impl->timer_queue = pw_context_get_timer_queue(context);
# 718| impl->data_loop = pw_context_acquire_loop(context, &props->dict);
# 719|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1287: error[uninitvar]: Uninitialized variable: csize
# 1285| return -EINVAL;
# 1286|
# 1287|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1288| return -EINVAL;
# 1289|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1287: error[uninitvar]: Uninitialized variable: ctype
# 1285| return -EINVAL;
# 1286|
# 1287|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1288| return -EINVAL;
# 1289|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1307: error[uninitvar]: Uninitialized variable: csize
# 1305| return -EINVAL;
# 1306|
# 1307|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1308| return -EINVAL;
# 1309|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1307: error[uninitvar]: Uninitialized variable: ctype
# 1305| return -EINVAL;
# 1306|
# 1307|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1308| return -EINVAL;
# 1309|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1809: error[uninitvar]: Uninitialized variable: csize
# 1807| return -EINVAL;
# 1808|
# 1809|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1810| return -EINVAL;
# 1811|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1809: error[uninitvar]: Uninitialized variable: ctype
# 1807| return -EINVAL;
# 1808|
# 1809|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1810| return -EINVAL;
# 1811|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1829: error[uninitvar]: Uninitialized variable: csize
# 1827| return -EINVAL;
# 1828|
# 1829|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1830| return -EINVAL;
# 1831|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1829: error[uninitvar]: Uninitialized variable: ctype
# 1827| return -EINVAL;
# 1828|
# 1829|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1830| return -EINVAL;
# 1831|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2323: error[uninitvar]: Uninitialized variable: csize
# 2321| return -EINVAL;
# 2322|
# 2323|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 2324| return -EINVAL;
# 2325|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2323: error[uninitvar]: Uninitialized variable: ctype
# 2321| return -EINVAL;
# 2322|
# 2323|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 2324| return -EINVAL;
# 2325|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2343: error[uninitvar]: Uninitialized variable: csize
# 2341| return -EINVAL;
# 2342|
# 2343|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 2344| return -EINVAL;
# 2345|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2343: error[uninitvar]: Uninitialized variable: ctype
# 2341| return -EINVAL;
# 2342|
# 2343|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 2344| return -EINVAL;
# 2345|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2845: error[uninitvar]: Uninitialized variable: csize
# 2843| return -EINVAL;
# 2844|
# 2845|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 2846| return -EINVAL;
# 2847|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2845: error[uninitvar]: Uninitialized variable: ctype
# 2843| return -EINVAL;
# 2844|
# 2845|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 2846| return -EINVAL;
# 2847|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2865: error[uninitvar]: Uninitialized variable: csize
# 2863| return -EINVAL;
# 2864|
# 2865|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 2866| return -EINVAL;
# 2867|
Error: CPPCHECK_WARNING (CWE-457):
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2865: error[uninitvar]: Uninitialized variable: ctype
# 2863| return -EINVAL;
# 2864|
# 2865|-> if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 2866| return -EINVAL;
# 2867|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-vban-recv.c:686:27: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:686:27: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 684| impl->module = module;
# 685| impl->context = context;
# 686|-> impl->main_loop = pw_context_get_main_loop(context);
# 687| impl->timer_queue = pw_context_get_timer_queue(context);
# 688| impl->data_loop = pw_context_acquire_loop(context, &props->dict);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-vban-recv.c:687:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:687:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 685| impl->context = context;
# 686| impl->main_loop = pw_context_get_main_loop(context);
# 687|-> impl->timer_queue = pw_context_get_timer_queue(context);
# 688| impl->data_loop = pw_context_acquire_loop(context, &props->dict);
# 689| spa_list_init(&impl->streams);
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:130:16: warning[-Wanalyzer-malloc-leak]: leak of ‘w’
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:134:22: enter_function: entry to ‘timeout_new’
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:140:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:141:12: branch_false: following ‘false’ branch (when ‘w’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:144:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:148:13: call_function: inlined call to ‘schedule_timeout’ from ‘timeout_new’
<unknown>: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:148:13: call_function: inlined call to ‘schedule_timeout’ from ‘timeout_new’
# 128| timeout_ns = 1;
# 129|
# 130|-> return pw_timer_queue_add(t->impl->timer_queue, &t->timer, NULL,
# 131| timeout_ns, timeout_callback, t);
# 132| }
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:190:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:185:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:186:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:189:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:190:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 188|
# 189| impl->context = context;
# 190|-> impl->loop = pw_context_get_main_loop(context);
# 191| impl->timer_queue = pw_context_get_timer_queue(context);
# 192|
Error: GCC_ANALYZER_WARNING (CWE-401):
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:191:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:185:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:186:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:189:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:191:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 189| impl->context = context;
# 190| impl->loop = pw_context_get_main_loop(context);
# 191|-> impl->timer_queue = pw_context_get_timer_queue(context);
# 192|
# 193| impl->api = avahi_poll_api;
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/src/pipewire/impl-link.c:925: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 923|
# 924| spa_list_remove(&this->input_link);
# 925|-> pw_impl_port_emit_link_removed(port, this);
# 926|
# 927| pw_impl_port_recalc_latency(port);
Error: CPPCHECK_WARNING (CWE-190):
pipewire-1.5.81/src/pipewire/impl-link.c:957: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 955|
# 956| spa_list_remove(&this->output_link);
# 957|-> pw_impl_port_emit_link_removed(port, this);
# 958|
# 959| pw_impl_port_recalc_latency(port);
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/src/tools/pw-link.c:774: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
# 772| obj->props = pw_properties_new_dict(props);
# 773| obj->data = extra;
# 774|-> obj->state = STATE_NEW;
# 775| obj->d = d;
# 776| spa_list_append(&d->objects, &obj->link);
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/src/tools/pw-link.c:775: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
# 773| obj->data = extra;
# 774| obj->state = STATE_NEW;
# 775|-> obj->d = d;
# 776| spa_list_append(&d->objects, &obj->link);
# 777|
Error: CPPCHECK_WARNING (CWE-476):
pipewire-1.5.81/src/tools/pw-link.c:778: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
# 776| spa_list_append(&d->objects, &obj->link);
# 777|
# 778|-> switch (obj->type) {
# 779| case OBJECT_PORT:
# 780| {
Error: GCC_ANALYZER_WARNING (CWE-404):
pipewire-1.5.81/src/tools/pw-top.c:112:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
pipewire-1.5.81/src/tools/pw-top.c:796:13: enter_function: entry to ‘do_handle_io’
pipewire-1.5.81/src/tools/pw-top.c:811:25: call_function: calling ‘do_refresh’ from ‘do_handle_io’
# 110| printf("\n");
# 111| } else
# 112|-> vw_printw(d->win, fmt, argp);
# 113| va_end(argp);
# 114| }
Error: GCC_ANALYZER_WARNING (CWE-775):
pipewire-1.5.81/test/test-logger.c:364:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rc’
pipewire-1.5.81/test/test-logger.c:341:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:346:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:349:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:351:9: branch_false: following ‘false’ branch (when ‘rc != -1’)...
pipewire-1.5.81/test/test-logger.c:353:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:364:9: branch_true: following ‘true’ branch (when ‘rc == -1’)...
pipewire-1.5.81/test/test-logger.c:364:9: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:364:9: danger: ‘rc’ leaks here; was opened at [(5)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/4)
# 362| }
# 363| }
# 364|-> pwtest_errno_ok(rc);
# 365| close(fd);
# 366| pwtest_bool_true(error_message_found);
Error: GCC_ANALYZER_WARNING (CWE-131):
pipewire-1.5.81/test/test-spa-control.c:128:18: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
pipewire-1.5.81/test/test-spa-control.c:154:1: enter_function: entry to ‘control_ump_to_midi’
pipewire-1.5.81/test/test-spa-control.c:156:9: call_function: calling ‘do_ump_to_midi_test’ from ‘control_ump_to_midi’
pipewire-1.5.81/test/test-spa-control.c:156:9: return_function: returning to ‘control_ump_to_midi’ from ‘do_ump_to_midi_test’
pipewire-1.5.81/test/test-spa-control.c:156:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-spa-control.c:158:9: branch_false: ...to here
pipewire-1.5.81/test/test-spa-control.c:158:9: call_function: calling ‘do_ump_to_midi_test’ from ‘control_ump_to_midi’
pipewire-1.5.81/test/test-spa-control.c:158:9: return_function: returning to ‘control_ump_to_midi’ from ‘do_ump_to_midi_test’
pipewire-1.5.81/test/test-spa-control.c:158:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-spa-control.c:161:9: branch_false: ...to here
pipewire-1.5.81/test/test-spa-control.c:161:9: call_function: calling ‘do_ump_to_midi_test’ from ‘control_ump_to_midi’
# 126| uint64_t state = 0;
# 127|
# 128|-> u_size = parse_ump(ump, u_data, sizeof(u_data));
# 129| m_size = parse_midi(midi, m_data, sizeof(m_data));
# 130|