pipewire/spa/include/spa
Michael Tretter 94ffe88b65 filter: return error if id cannot be dereferenced
If an ID cannot be de-referenced, e.g., because the builder buffer is
too small, spa_pod_filter() still reports success, but the result is
NULL. Any subsequent access to result will cause a segfault.

Return an error if no pod is found to properly propagate and handle the
error.

The segfault can be reproduced by using the v4l2 module with Vivid
devices [0], because the buffer for the v4l2 controls is too small.

[0] https://github.com/PipeWire/pipewire/issues/138
2019-12-19 15:43:04 +01:00
..
buffer meta: make sequence number 64 bits 2019-10-29 22:44:45 +01:00
control control: clean up some control includes 2019-09-16 15:49:46 +02:00
debug pod: rename context to flags in spa_pod_prop 2019-11-21 09:32:08 +01:00
graph hook: separate spa_callbacks from the hook 2019-05-15 12:17:52 +02:00
monitor Make interface types a string 2019-12-19 13:36:04 +01:00
node Make interface types a string 2019-12-19 13:36:04 +01:00
param More session manager work 2019-11-29 13:34:07 +01:00
pod filter: return error if id cannot be dereferenced 2019-12-19 15:43:04 +01:00
support Make interface types a string 2019-12-19 13:36:04 +01:00
utils Make interface types a string 2019-12-19 13:36:04 +01:00
meson.build add keys.h header 2019-11-21 13:04:58 +01:00