Pathname Merging and Splitting Warnings

From Appmethod Topics
Jump to: navigation, search

Go Up to CodeGuard Warnings Index

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:

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.