Each of the following functions use constants defined in dir.h to determine the maximum number of bytes to copy to or from a buffer:
If the Warnings option is enabled, the output buffer is validated against MAXPATH before fnmerge is called.
If the Warnings option is disabled, the size of the output buffer is validated against the null-terminated string length after fnmerge is called.
If the Warnings option is enabled, the input buffers are validated against MAXDRIVE, MAXDIR, MAXFILE, and MAXEXT before fnsplit is called.
If the Warnings option is disabled, the input buffers are validated against the length of the null-terminated string after fnsplit is called.
If the Warnings option is enabled, the output buffer is validated against MAXDIR before getcurdir is called.
If the Warnings option is disabled, the output buffer is validated against the length of the null-terminated string after getcurdir is called.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|