msi: Fix heap overflow in save_string_table.
Fix heap overflow caused by not accounting for the dummy first item, which contains the codepage.
This commit is contained in:
parent
6c529a7273
commit
66c9cbbe0f
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue