<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-08-11 20:20 GMT+02:00 Joël Krähemann <span dir="ltr"><<a href="mailto:jkraehemann@gmail.com" target="_blank">jkraehemann@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
For sure you can cast any pointer. But feels somehow wrong. The<br>
opinion was the specs<br>
are always correct.<br>
<br>
Bests,<br>
Joël<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Fri, Aug 11, 2017 at 8:12 PM, Jaromír Mikeš <<a href="mailto:mira.mikes@gmail.com">mira.mikes@gmail.com</a>> wrote:<br>
><br>
><br>
> 2017-08-10 16:23 GMT+02:00 Joël Krähemann <<a href="mailto:jkraehemann@gmail.com">jkraehemann@gmail.com</a>>:<br>
>><br>
>> Hi James,<br>
>><br>
>> It is common that you use for storing uint8_t an entire word.<br>
>> The use of a uint8_t pointer confused me as you are pointing<br>
>> to a struct.<br>
>><br>
>> Bests,<br>
>> Joël<br>
>><br>
>><br>
>> On Thu, Aug 10, 2017 at 4:10 PM, James Cowgill <<a href="mailto:jcowgill@debian.org">jcowgill@debian.org</a>><br>
>> wrote:<br>
>> > Hi,<br>
>> ><br>
>> > On 10/08/17 08:31, Joël Krähemann wrote:<br>
>> >> Package: lv2-dev<br>
>> >> Version: 1.14.0~dfsg1-1<br>
>> >> Severity: important<br>
>> >><br>
>> >> Dear Maintainer,<br>
>> >><br>
>> >> The following header makes use of smallest possible pointer in<br>
>> >> LV2_Event_Buffer struct's data field.<br>
>> >><br>
>> >> lv2/<a href="http://lv2plug.in/ns/ext/event/event.h" rel="noreferrer" target="_blank">lv2plug.in/ns/ext/event/<wbr>event.h</a><br>
>> >><br>
>> >> Please change it to biggest possible pointer. It should be definitely<br>
>> >> void* type because the memory<br>
>> >> pointed by data shall contain another struct LV2_Event.<br>
>> >><br>
>> >> This describes an integer overflow. There shouldn't be any overflow.<br>
>> ><br>
>> > I'm afraid I don't see what the problem is here, or where the integer<br>
>> > overflow is. The data field is casted to an appropriate pointer type<br>
>> > whenever it is used and doing that is portable if you're careful.<br>
>><br>
><br>
> Hi Joel,<br>
><br>
> You still think it is a bug?<br>
> Did you contacted upstream author about this issue already?<br>
><br>
> best regards<br>
><br>
> mira<br>
><br>
</div></div></blockquote></div><br></div><div class="gmail_extra">@ Joel as you didn't my second question I'm assuming you didn't contacted upstream author yet.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Hi David,<br><br></div><div class="gmail_extra">can you please comment on this bug which we have opened in debian against lv2-dev package?<br></div><div class="gmail_extra">I am not sure what to do with it.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">best regards<br><br></div><div class="gmail_extra">mira<br></div></div>