Browse Source

Fix potential blank node ID truncation

zrythm_meson
David Robillard 11 months ago
parent
commit
bf75193a3f
  1. 6
      NEWS
  2. 2
      src/sratom.c

6
NEWS

@ -1,3 +1,9 @@
sratom (0.6.9) unstable;
* Fix potential blank node ID truncation
-- David Robillard <d@drobilla.net> Sun, 10 Jan 2021 22:10:23 +0000
sratom (0.6.8) stable;
* Fix potential null pointer dereference

2
src/sratom.c

@ -140,7 +140,7 @@ sratom_set_object_mode(Sratom* sratom, SratomObjectMode object_mode)
static void
gensym(SerdNode* out, char c, unsigned num)
{
out->n_bytes = out->n_chars = snprintf((char*)out->buf, 10, "%c%u", c, num);
out->n_bytes = out->n_chars = snprintf((char*)out->buf, 12, "%c%u", c, num);
}
static void

Loading…
Cancel
Save