pipewire/spa
Barnabás Pőcze c851349f17 spa: logger: fix potential buffer overrun when message is long
If the message was too long, then the `vsnprintf()` call would
fill up `location`, leaving no space for the color escape sequence
and the newline, causing a stack buffer overrun here:

  size += snprintf(p + size, len - size, "%s\n", impl->colors ? suffix : "");

Fix that by reserving the last 24 bytes of the message buffer.
2021-05-28 09:40:11 +00:00
..
examples treewide: replace plain strcmp() calls with spa_streq 2021-05-18 22:10:27 +10:00
include spa: add some latency helpers 2021-05-27 15:26:09 +02:00
plugins spa: logger: fix potential buffer overrun when message is long 2021-05-28 09:40:11 +00:00
tests spa: fix unit test, add new object type 2021-05-27 15:26:09 +02:00
tools treewide: replace strcmp() == 0 with spa_streq() 2021-05-18 22:10:27 +10:00
meson.build spa: ffmpeg: remove libavformat dependency 2021-05-16 13:10:59 +00:00