EldoS | Feel safer!

Software components for data protection, secure storage and transfer

error in your :encrypt

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
#10579
Posted: 07/14/2009 04:21:35
by Wang Sheng (Basic support level)
Joined: 02/16/2009
Posts: 44

I run you sample:encrypt,just make some edit
void EncryptContext::EncryptBuffer()
{
//for (DWORD I = 0; I < mBufferSize; I++)
// mBuffer[I] ^= 0xFF;
}

void EncryptContext::DecryptBuffer()
{
//for (DWORD I = 0; I < mBufferSize; I++)
// mBuffer[I] ^= 0xFF;
}

After running quite a long time,maybe two or three hours,the UserContext in preRead callbacl is NULL

void CbFltReadFileC(
CallbackFilter* Sender,
LPWSTR FileName,
__int64* Position,
PVOID Buffer,
PDWORD BytesToRead,
PVOID* UserContext,
LPBOOL RequestAccepted)
{
EncryptContext *Context;
WCHAR text[MAX_PATH * 2];
wsprintfW(text, L"ReadFileC %s", FileName);
AddToLog(text);
Context = (EncryptContext*)(*UserContext);

*BytesToRead = Context->Read(*Position, Buffer, *BytesToRead);

if(GetLastError() == ERROR_HANDLE_EOF) {

throw ECBFltError(ERROR_HANDLE_EOF);
}
*RequestAccepted = FALSE;
}
#10584
Posted: 07/14/2009 20:50:53
by Wang Sheng (Basic support level)
Joined: 02/16/2009
Posts: 44

Hi,I maybe get the reason.
I found that:not every OpenFileCallback is end with closeFileCallback, sometimes only OpenFilecallback is firing,closeFilecallback is not firing,
so UserContext will not be deleted,it cause memory leak,so after running a long time,system crash.
#10585
Posted: 07/15/2009 00:47:52
by Vladimir Cherniga (EldoS Corp.)

Please specify your cbfilter version. We will check this issue.
#10587
Posted: 07/15/2009 01:10:29
by Wang Sheng (Basic support level)
Joined: 02/16/2009
Posts: 44

Hi,My current version is 2.0.21,
I also found that :version 2.0.20 also has this bug,
and version 2.0.19 do not has this bug.
#10590
Posted: 07/15/2009 05:23:18
by Vladimir Cherniga (EldoS Corp.)

Hi,
please make your tests with attached driver(0.1.4.14). It has some fixes.


[ Download ]
#10607
Posted: 07/15/2009 18:47:48
by Wang Sheng (Basic support level)
Joined: 02/16/2009
Posts: 44

Hi,With the attahced driver,the issue still exists.
Some closefileback is not firing.
#10675
Posted: 07/27/2009 23:54:22
by Wang Sheng (Basic support level)
Joined: 02/16/2009
Posts: 44

Hi,Two weeks gone,still can not resolve the bug ?!
I suggest look through previous version ,such as version 1, they do not
have this bug.
#10678
Posted: 07/28/2009 05:37:18
by Vladimir Cherniga (EldoS Corp.)

Sorry for the delay with answer. This bug is fixed now. New version will be avalable soon. Thank you for the information.
#10794
Posted: 08/13/2009 20:17:30
by Wang Sheng (Basic support level)
Joined: 02/16/2009
Posts: 44

Sorry to ask,when will your new version release ?
#10796
Posted: 08/14/2009 04:33:06
by Vladimir Cherniga (EldoS Corp.)

Must be after this weekend. We need to resolve some questions from helpdesk.
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 10687 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!