mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 13:26:16 +01:00
0cbad67321
The members of `URL_COMPONENTS` (`winhttp_file->url`) are `DWORD`s, i.e. 32-bit unsigned integers. Adding to and multiplying them may cause them to overflow the unsigned integer bounds, even if the result is passed to `g_memdup2()` which accepts a `gsize`. Cast the `URL_COMPONENTS` members to `gsize` first to ensure that the arithmetic is done in terms of `gsize`s rather than unsigned integers. Spotted by Sebastian Dröge. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #2319 |
||
---|---|---|
.. | ||
gwin32filemonitor.c | ||
gwin32filemonitor.h | ||
gwin32fsmonitorutils.c | ||
gwin32fsmonitorutils.h | ||
gwinhttpfile.c | ||
gwinhttpfile.h | ||
gwinhttpfileinputstream.c | ||
gwinhttpfileinputstream.h | ||
gwinhttpfileoutputstream.c | ||
gwinhttpfileoutputstream.h | ||
gwinhttpvfs.c | ||
gwinhttpvfs.h | ||
meson.build | ||
winhttp.h |