[vlc-devel] [PATCH v3 04/10] core: use refcounter helper for pictures

Romain Vimont rom1v at videolabs.io
Wed Jul 4 11:17:58 CEST 2018


On Wed, Jul 04, 2018 at 12:02:45PM +0300, Rémi Denis-Courmont wrote:
> I never said that uint was enough for anything

Is uint not enough for normal usage (some objects are intended to be
refcounted many many times) or not enough as a security reason against
malicious usage?

> Le 4 juillet 2018 11:05:32 GMT+03:00, Romain Vimont <rom1v at videolabs.io> a écrit :
> >On Wed, Jul 04, 2018 at 09:24:19AM +0300, Rémi Denis-Courmont wrote:
> >> Reason was provided multiple times.
> >> 
> >> If you don't understand it, that's no excuse for bullshitting.
> >
> >OK, so let's review the reason you provided as comments of patch v2
> >once
> >again, so I get a chance to understand.
> >
> >> 1) This creates obvious overflow.
> >
> >> There was a protection and you removed it. By definition, we can
> >> obviously not have more uintptr_max in-memory refs.
> >
> >> In other words, there was a protection: the type was wide enough.
> >
> >Maybe I missed something, but how does this explain why the refcount
> >type for pictures has to be wider than the refcount type used for other
> >objects?
> >
> >Are pictures refcounted more than what an "unsigned int" may provide?
> >
> >> Le 3 juillet 2018 23:17:14 GMT+03:00, Romain Vimont
> ><rom1v at videolabs.io> a écrit :
> >> >No reason has been provided to keep a different type for pictures
> >from
> >> >any other refcounts. It seems the difference was accidental, so the
> >> >types should now be made consistent.
> >_______________________________________________
> >vlc-devel mailing list
> >To unsubscribe or modify your subscription options:
> >https://mailman.videolan.org/listinfo/vlc-devel
> 
> -- 
> Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.

> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list