Commit 66c9cbbe authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

msi: Fix heap overflow in save_string_table.

Fix heap overflow caused by not accounting for the dummy first item, which contains the codepage.
parent 6c529a72
......@@ -755,7 +755,7 @@ static UINT save_string_table( MSIDATABASE *db )
/* construct the new table in memory first */
datasize = msi_string_totalsize( db->strings, &count );
poolsize = count*2*sizeof(USHORT);
poolsize = (count + 1)*2*sizeof(USHORT);
pool = msi_alloc( poolsize );
if( ! pool )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment