EldoS | Feel safer!

Software components for data protection, secure storage and transfer

The data area passed to a system call is too small exception

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#18219
Posted: 11/17/2011 01:55:00
by ohad (Standard support level)
Joined: 02/02/2011
Posts: 24

Hi,

Related to my recent questions regarding the security permissions,using the "mapper" sample as basis,I noticed that in OnGetFileSecurity i constantly get the ECBFSError "The data area passed to a system call is too small",on

Code
!GetFileSecurity(mRootPath + FileInfo.FileName, SecurityInformation, SecurityDescriptor, Length,
                                 ref LengthNeeded))


At the same time I don't see any error when viewing the security permissions,so can anyone tell me what is this about? Should I just ignore it?
#18220
Posted: 11/17/2011 02:27:28
by Volodymyr Zinin (EldoS Corp.)

I think it's so because the system code requests at least twice the security attributes - first it passes small (or zero length buffer) and if the "buffer too small" error occurs it resend the request with the larger buffer.

Reply

Statistics

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