[vlc-devel] [vlc-commits] commit: Added C64 sid demux module (Alan Fischer )

Rémi Denis-Courmont remi at remlab.net
Sat Dec 11 16:31:21 CET 2010


----- Message d'origine -----
> > +      int64_t size = stream_Size (demux->s);
> > +      if (size < 4 || size > LONG_MAX) /* We need to load the whole file for
> > sidplay */ +              return VLC_EGENERIC;
>  Why LONG_MAX? Shouldn't it be SIZE_MAX to avoid overflow in malloc?

Because the sidplay read function takes a long...




More information about the vlc-devel mailing list