mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-01-06 16:10:10 +01:00
The data pointer of a WpSpaJson object can be bigger than the actual WpSpaJson size. For example, this happens when iterating an array: instead of re-allocating the nested data into a new region of memory, the iterator uses the same region of memory as the parent, and just sets the pointer data and size to the correct location when creating the nested WpSpaJson object. This patch makes sure only the data represented by the size is added into the builder when adding a json object, fixing issues that were happening before when adding nested objects directly from a second WpSpaJson object. |
||
|---|---|---|
| .. | ||
| wp | ||
| meson.build | ||