[MPlayer-dev-eng] [PATCH] make mplayer's liblzo support compile with lzo 2.x

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun Jan 28 14:53:30 CET 2007


Hello,
On Sun, Jan 28, 2007 at 01:31:37PM +0100, Luca Barbato wrote:
> Reimar D?ffinger wrote:
> >+                  if (block_length > SIZE_MAX - 1000) return 0;
> >+                  block = malloc (block_length + LZO_INPUT_PADDING);
> 
> why 1000 ?

Arbitrary, but used everywhere else in such checks in demux_mkv.c
IOW, for consistency reasons.

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list