Added patch to avoid buffer overflow in mono print handler for large strings.

This commit is contained in:
Sebastian Lackner
2016-04-29 23:14:35 +02:00
parent 8d2cdec699
commit 88054b7a21
3 changed files with 50 additions and 0 deletions

View File

@@ -185,6 +185,7 @@ patch_enable_all ()
enable_mmsystem_dll16_MIDIHDR_Refcount="$1"
enable_mountmgr_DosDevices="$1"
enable_mpr_WNetGetUniversalNameW="$1"
enable_mscoree_Buffer_Overflow="$1"
enable_mscoree_CorValidateImage="$1"
enable_mshtml_HTMLLocation_put_hash="$1"
enable_msidb_Implementation="$1"
@@ -722,6 +723,9 @@ patch_enable ()
mpr-WNetGetUniversalNameW)
enable_mpr_WNetGetUniversalNameW="$2"
;;
mscoree-Buffer_Overflow)
enable_mscoree_Buffer_Overflow="$2"
;;
mscoree-CorValidateImage)
enable_mscoree_CorValidateImage="$2"
;;
@@ -4340,6 +4344,18 @@ if test "$enable_mpr_WNetGetUniversalNameW" -eq 1; then
) >> "$patchlist"
fi
# Patchset mscoree-Buffer_Overflow
# |
# | Modified files:
# | * dlls/mscoree/metahost.c
# |
if test "$enable_mscoree_Buffer_Overflow" -eq 1; then
patch_apply mscoree-Buffer_Overflow/0001-mscoree-Avoid-buffer-overflow-when-mono-print-handle.patch
(
echo '+ { "Sebastian Lackner", "mscoree: Avoid buffer overflow when mono print handler returns huge string at once.", 1 },';
) >> "$patchlist"
fi
# Patchset mscoree-CorValidateImage
# |
# | This patchset fixes the following Wine bugs: