[FFmpeg-devel] [PATCH] urlconcat protocol

Michael Niedermayer michaelni
Wed Feb 3 03:32:46 CET 2010


On Wed, Feb 03, 2010 at 01:31:57AM +0100, Stefano Sabatini wrote:
> On date Monday 2010-02-01 22:53:17 +0100, Michele Orr? encoded:
> > 2010/1/31 Michael Niedermayer <michaelni at gmx.at>
[...]
> > +    if (!(unodes = av_malloc(sizeof(*unodes) * len))) {
> 
> you can check here with:
> if ((uint64_t)(sizeof(*unodes)) * len > UINT_MAX) ...

while it is enough in practice (on todays computers)
this is not strictly correct thus i would recomman against the practice
of checking like that you dont know at all if UINT_MAX < UINT64_MAX
for example. 

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100203/331b691b/attachment.pgp>



More information about the ffmpeg-devel mailing list