mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:16:04 +00:00
[MSI]
- Apply Wine commit f41ac94e (msi: Include the terminating null in the buffer size for decoded stream names.) by Hans Leidekker. Fixes a stack buffer overflow when installing VMware Tools. svn path=/trunk/; revision=65859
This commit is contained in:
parent
37f198c7d6
commit
938f228699
2 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ UINT msi_get_raw_stream( MSIDATABASE *db, LPCWSTR stname, IStream **stm )
|
|||
{
|
||||
HRESULT r;
|
||||
IStorage *stg;
|
||||
WCHAR decoded[MAX_STREAM_NAME_LEN];
|
||||
WCHAR decoded[MAX_STREAM_NAME_LEN + 1];
|
||||
|
||||
decode_streamname( stname, decoded );
|
||||
TRACE("%s -> %s\n", debugstr_w(stname), debugstr_w(decoded));
|
||||
|
|
|
@ -56,7 +56,7 @@ static BOOL streams_set_table_size(MSISTREAMSVIEW *sv, UINT size)
|
|||
static STREAM *create_stream(MSISTREAMSVIEW *sv, LPCWSTR name, BOOL encoded, IStream *stm)
|
||||
{
|
||||
STREAM *stream;
|
||||
WCHAR decoded[MAX_STREAM_NAME_LEN];
|
||||
WCHAR decoded[MAX_STREAM_NAME_LEN + 1];
|
||||
|
||||
stream = msi_alloc(sizeof(STREAM));
|
||||
if (!stream)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue