EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Random Trash passed in UserContext

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#7351
Posted: 08/18/2008 12:05:31
by Joe Portman (Basic support level)
Joined: 05/28/2008
Posts: 21

In PostOpenFileC I create a user context and set it.
Later during CloseFileC I use the context, the deallocate it and zero UserContext parameter.

Later, out of the blue, I will get write calls (CbFltWriteFileC) for the file (which has been closed) and the UserContext parameter will contain garbage.

Is this the designed behavior?
#7352
Posted: 08/18/2008 12:16:31
by Eugene Mayevski (EldoS Corp.)

Of course this is not the designed or desired behaviour :). Is this some reproducible case or it happens randomly?


Sincerely yours
Eugene Mayevski
#7358
Posted: 08/18/2008 14:36:46
by Joe Portman (Basic support level)
Joined: 05/28/2008
Posts: 21

Quote
Eugene Mayevski wrote:
Of course this is not the designed or desired behaviour :). Is this some reproducible case or it happens randomly?


It appears to be the case any time the file has been closed.
However, it's hard to tell, since everything is asynchronous.

I also note than in PostFileOpenC the value is sometimes 0 and sometimes not, but in no case is it ever valid.

JP

Reply

Statistics

Topic viewed 3235 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!