[LV2] Fwd: [patch] Add null check for frame ref in lv2_atom_forge_raw

Wladimir laanwj at gmail.com
Mon Sep 29 01:13:26 PDT 2014

Re-send: subscription to mailing list should be in order now


It's currently possible for a overflow of the forge buffer to result
in a NULL deference in lv2_atom_forge_raw.

I'm not sure if this is by design - are we supposed to manually check
the forge buffer before every write? in any case, the attached patch
adds a check so that everything submitted after the buffer is full
amounts to a no-op, as I think is the intention.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lv2_forge_raw_stack_null_check.patch
Type: text/x-diff
Size: 487 bytes
Desc: not available
URL: <http://lists.lv2plug.in/pipermail/devel-lv2plug.in/attachments/20140929/fac0c166/attachment-0001.patch>

More information about the Devel mailing list