Bug#871649: lv2-dev: abuse of non portable pointer of uint8_t type

Robin Gareus robin at gareus.org
Fri Aug 11 18:52:12 UTC 2017


Note that the LV2 event extension was deprecated years ago
and the last plugins which were using it were /killed/ in 2014.

http://lists.lv2plug.in/pipermail/devel-lv2plug.in/2014-January/000642.html


As for the bug report itself, changing plugin API specifications
post-factum is never a good idea. So uint8_t it is, besides the
documentation in event.h makes it clear:

/**
The contents of the event buffer. This may or may not reside in the
same block of memory as this header, plugins must not assume either.
The host guarantees this points to at least capacity bytes of allocated
memory (though only size bytes of that are valid events).
*/
uint8_t* data;


not a bug.

On 08/11/2017 08:20 PM, Joël Krähemann wrote:
> Hi
> 
> For sure you can cast any pointer. But feels somehow wrong. The
> opinion was the specs
> are always correct.
> 
> Bests,
> Joël
> 



More information about the pkg-multimedia-maintainers mailing list