[vlc-devel] [PATCH 4/4] text/url: fix port handling in vlc_UrlParse

Filip Roséen filip at atch.se
Fri Oct 28 16:30:46 CEST 2016


And after some more investigation, `unsigned int` is guaranteed to be
a minimum of 32-bits in C99. This means that the check to see if
`port` fits inside `unsigned` is enough in terms checking for
overflows, and given that we only care about at most 16-bits, we are
fine.

Attached updated (final) patch.

On 2016-10-28 16:22, Filip Roséen wrote:

> ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20161028/b4fbd574/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-text-url-fix-port-handling-in-vlc_UrlParse.patch
Type: text/x-diff
Size: 1463 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20161028/b4fbd574/attachment.patch>


More information about the vlc-devel mailing list