Fixed crash when block-loading more than 8 plugins (bug 4034, r=dvander).
Fixed crash when block-loading more than 8 plugins (
bug 4034, r=dvander).
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);