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: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
Posted: 11/17/2011 01:55:00
by ohad (Standard support level)
Joined: 02/02/2011
Posts: 24


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

!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?
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.



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