RAD Studio |  |

CodeGuard Warnings
Collapse All

CodeGuard can report situations where your application may access memory beyond a buffer's maximum size. Warnings are available for three types of runtime library functions.

Topics

Name | Description
Memory Block Comparison Warnings | Each of the following functions has a parameter that determines the maximum number of bytes it compares: memcmp memicmp _fmemcmp _fmemicmp If the Warnings option is enabled for the functions listed above, CodeGuard verifies that a comparison can be performed for each memory block passed to the function. If a memory block is too large, as determined by the parameter passed to the function, CodeGuard generates a warning. If the Warnings option is disabled for the functions listed above, CodeGuard checks the first byte in each memory block passed to the function. If the memory block is invalid, CodeGuard generates... more
Pathname Merging and Splitting Warnings | 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 fnsplit getcurdir
String Comparison Warnings | Each of the following functions has a parameter that determines the maximum number of bytes it compares: strncmp strnicmp strncmpi _fstrncmp _fstrnicmp If the Warnings option is enabled for the functions listed, CodeGuard verifies that a string comparison can be performed for each buffer passed to the function. If the buffer size is too large, as determined by the parameter passed to the function, and the buffer is not null-terminated, CodeGuard generates a warning. If the Warnings option is disabled for the functions listed above, CodeGuard checks the first byte in each memory block passed to the function. If the... more

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!