You need to sign in or sign up before continuing.
Memory corruption bug triggered by too small buffer for fnsplit
fnsplit is an preprocessor alias to _splitpath under Watcom C. Preprocessor definitions MAXFILE (8) and MAXEXT (3) from hh_dir.h are used to reserve memory for function arguments, however these values are too small. MAXEXT has to be at least 5 (.EXT plus terminating 0), and MAXFILE has to be 9 (including terminating zero).