RAD Studio
ContentsIndex
PreviousUpNext
CodeGuard Warnings

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.

Name 
Description 
Each of the following functions has a parameter that determines the maximum number of bytes it compares:

  1. memcmp
  2. memicmp
  3. _fmemcmp
  4. _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 

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

 

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!