[vlc-devel] [PATCH 4/4] demux/nsv: do not read chunks greater than SSIZE_MAX

Filip Roséen filip at atch.se
Mon Oct 31 10:44:44 CET 2016


On 2016-10-31 01:05, Filip Roséen wrote:

> On a 32-bit platform, SSIZE_MAX is generally smaller than UINT32_MAX,
> meaning that invoking vlc_stream_Read where the size argument is
> UINT32_MAX makes it impossible for vlc_stream_Read to signal that the
> reading was successful.
> These changes reads data in chunks of at most SSIZE_MAX to prevent the
> previously described issue.
> ---
>  modules/demux/nsv.c | 13 ++++++++++++-
>  1 file changed, 12 insertions(+), 1 deletion(-)

Due to fix-up of patch `3/4`, see attachment of updated patch, and the
below for more information:

  - https://mailman.videolan.org/pipermail/vlc-devel/2016-October/110128.html


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20161031/fd71920c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-demux-nsv-do-not-read-chunks-greater-than-SSIZE_MAX.patch
Type: text/x-diff
Size: 1691 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20161031/fd71920c/attachment.patch>

More information about the vlc-devel mailing list