<html><head></head><body>1) This creates obvious overflow. Exactly the bug that the inspiring kernel code is meant to fix...<br>
<br>
2) So this won't work for e.g. picture_t.<br>
<br>
3, 4) Inspiring kernel code does address those issues.<br>
<br>
And then, no assert in public headers.<br><br><div class="gmail_quote">Le 2 juillet 2018 18:18:27 GMT+03:00, "Hugo Beauzée-Luyssen" <hugo@beauzee.fr> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On Mon, Jul 2, 2018, at 8:12 AM, Rémi Denis-Courmont wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Same problems as before.<br> -- <br> Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser <br> ma brièveté.<br><hr><br> vlc-devel mailing list<br> To unsubscribe or modify your subscription options:<br> <a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br></blockquote><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> - type sizes (uint, uintptr...),<br></blockquote><br>The serie only affect code that was using uint, except for patch 4 that was using uintptr, and I believe uint to be a better fit; and patch 10. I'm fine with dropping patch 10 for now.<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> - order on decrement - acq_rel is not always needed,<br></blockquote><br>I believe it is.<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> - corner cases where the decrement is known to not reach zero,<br></blockquote><br>Then don't use the helper in that case?<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> - corner cases where the decrement cannot be permitted to reach zero(e.g. vlc_object_t, IIRC).<br></blockquote><br>Ditto.<br></pre></blockquote></div><br>
-- <br>
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>