--- a/userlibandfileserver/fileserver/sfile/sf_obj.cpp Wed Mar 31 23:38:45 2010 +0300
+++ b/userlibandfileserver/fileserver/sfile/sf_obj.cpp Wed Apr 14 17:22:59 2010 +0300
@@ -129,7 +129,10 @@
if (newAlloc!=iAllocated)
{
if (newAlloc)
+ {
iContainers=(CFsObjectCon**)User::ReAlloc(iContainers,newAlloc*sizeof(CFsObjectCon*));
+ __ASSERT_DEBUG(iContainers,User::Panic(_L("FS_LDR panic"),ELdrHeapCorruptionOnRemove));
+ }
else
{
delete iContainers;
@@ -489,7 +492,10 @@
if (newAlloc!=iAllocated)
{
if (newAlloc)
+ {
iObjects=(SFsObjectIxRec*)User::ReAlloc(iObjects,newAlloc*sizeof(SFsObjectIxRec));
+ __ASSERT_DEBUG(iObjects,User::Panic(_L("FS_LDR panic"),ELdrHeapCorruptionOnRemove));
+ }
else
{
delete iObjects;
@@ -679,7 +685,10 @@
if (newAlloc!=iAllocated)
{
if (newAlloc)
+ {
iObjects=(CFsObject**)User::ReAlloc(iObjects,newAlloc*sizeof(CFsObject*));
+ __ASSERT_DEBUG(iObjects,User::Panic(_L("FS_LDR panic"),ELdrHeapCorruptionOnRemove));
+ }
else
{
delete iObjects;