[vlc-devel] [PATCH] Add support for AMT multicast tunneling over non-multicast enabled networks

Ilkka Ollakka ileoo at videolan.org
Wed May 1 17:43:48 CEST 2019


On Tue, Apr 30, 2019 at 10:22:44AM -0400, Wayne Brassem wrote:

Hi,

> Actually it just hit me how to solve this issue.


> > If I used just one buffer and returned an AMT tunnel header adjusted pointer to the payload beginning I was concerned that it might leak memory (equal to sizeof( AMT header) ) in main.

block_Alloc/Release can manage just fine if you modify
p_buffer/i_buffer, assuming they are kept sane.

So even if you adjust those, it doesn't modify the actual buffer-start
of block, as it's stored separately.  You can check those from
src/misc/block.c if interested.

-- 
Ilkka Ollakka
"See - the thing is - I'm an absolutist.  I mean, kind of ... in a way ..."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190501/72d1d0bb/attachment.sig>


More information about the vlc-devel mailing list