[vlc-devel] [PATCH] modules: use 16-bit ints for option counts

Lyndon Brown jnqnfe at gmail.com
Wed Sep 30 18:49:27 CEST 2020


Fair enough, but again, there are two enhancements in one here. How do
you feel about second?

On Wed, 2020-09-30 at 10:25 +0200, Thomas Guillem wrote:
> I'm also against such change.
> 
> Such improvements could be welcome on data structures that are
> duplicated more than 10k. But here, we are talking about hundreds of
> modules.
> 
> On Tue, Sep 29, 2020, at 21:09, Lyndon Brown wrote:
> > On Tue, 2020-09-29 at 18:09 +0300, Rémi Denis-Courmont wrote:
> > > Le tiistaina 29. syyskuuta 2020, 2.56.18 EEST Lyndon Brown a
> > > écrit :
> > > > > Which is exactly the current situation. With size_t, you
> > > > > can't
> > > > > overflow.
> > > > 
> > > > Who says I'd not tested it?
> > > 
> > > Most error paths are not tested, or only tested once when the
> > > code is
> > > first 
> > > written. I'm not interesting in arguing about this broadly
> > > accepted
> > > notion.
> > 
> > Granted.
> > 
> > But both changes, the size change and catching a runaway series of
> > creation requests, whichever or both you're referring to, are
> > rather
> > trivial to understand and follow, to be confident in. I don't think
> > such concern is warranted here.
> > 
> > I spent a lot of time exploring the option and plugin descriptor
> > handling areas of the codebase both in terms of the Rust conversion
> > project and in terms of a bunch of work pending submission (per
> > stuff
> > beneath it in the big patch tree gradually getting processed). This
> > isn't just a random tweak without understanding of how this stuff
> > is
> > interacted with throughout the plugin descriptor and option
> > handling
> > code, I've looked and understood and carefully made changes.
> > 
> > _______________________________________________
> > vlc-devel mailing list
> > To unsubscribe or modify your subscription options:
> > https://mailman.videolan.org/listinfo/vlc-devel
> _______________________________________________
> 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