Fixed crash when block-loading more than 8 plugins (bug 4034, r=dvander).
authorFyren <fyrenmoo@gmail.com>
Fri Oct 02 02:30:01 2009 -0700 (2009-10-02)
changeset 2811af581de19119
parent 2810 2ceb5b2b0da0
child 2812 06bf8212ca46
Fixed crash when block-loading more than 8 plugins (bug 4034, r=dvander).
core/PluginInfoDatabase.cpp
     1.1 --- a/core/PluginInfoDatabase.cpp	Fri Oct 02 02:26:11 2009 -0700
     1.2 +++ b/core/PluginInfoDatabase.cpp	Fri Oct 02 02:30:01 2009 -0700
     1.3 @@ -276,7 +276,7 @@
     1.4  					{
     1.5  						m_infodb_size *= 2;
     1.6  					}
     1.7 -					int newidx = memtab->CreateMem(m_infodb_size, (void **)&table);
     1.8 +					int newidx = memtab->CreateMem(m_infodb_size * sizeof(int), (void **)&table);
     1.9  					if (m_infodb != -1)
    1.10  					{
    1.11  						void *oldtable = (int *)memtab->GetAddress(m_infodb);