FullFAT icon indicating copy to clipboard operation
FullFAT copied to clipboard

Prevent use of FF_DIRENT objects used on stack.

Open jameswalmsley opened this issue 12 years ago • 1 comments

The following functions declare complete FF_DIRENT objects on the stack, which can be quite large when LFNs are enabled.

FF_FindDir() FF_CreateShortName() FF_CreateFile() FF_MkDir()

I propose a FF_PDIRENT type that uses pointers to the original path string provided, with start and end pointers to delimit sub-strings.

jameswalmsley avatar Oct 14 '13 18:10 jameswalmsley

Also found in:

FF_Open() FF_isDirEmpty() FF_Move() FF_ExtendFile() FF_SetFileTime() FF_SetTime() FF_Close()

jameswalmsley avatar Oct 14 '13 18:10 jameswalmsley