RAD Studio |  |

Pathname Merging and Splitting Warnings
fnmerge | fnsplit | getcurdir
Collapse All

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:

1. fnmerge
2. fnsplit
3. getcurdir

fnmerge

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.

fnsplit

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.

getcurdir

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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!