pipewire/spa
Barnabás Pőcze d2114c3f2e spa: audioconvert: fix allocation size calculation
Currently, the code allocates

  sizeof(header) * sizeof(item) * n_items

bytes instead of the more appropriate

  sizeof(header) + sizeof(item) * n_items

Fix that by simply changing the first multiplication to addition, and
furthermore, use a flexible array member instead of a zero-sized array.

Found by clang-tidy.
2022-01-19 02:01:07 +01:00
..
examples treewide: meson.build: use dependency variable for SPA 2021-12-28 18:34:06 +01:00
include pw-cli: move json to pod code to SPA 2022-01-18 10:38:11 +01:00
plugins spa: audioconvert: fix allocation size calculation 2022-01-19 02:01:07 +01:00
tests treewide: meson.build: simplify get_variable() calls 2022-01-17 08:28:53 +00:00
tools json: spa_json_get_string() writes up to len chars or fail 2022-01-04 10:42:32 +01:00
meson.build spa: meson.build: export data directory on dependency 2021-12-28 18:41:09 +01:00