DebugError (NULL, 0, 1001, "Missing option", "-o missing output directory name");\r
goto Fail;\r
}\r
- if (strlen (Argv[Index]) > MAX_PATH - 1) {\r
- DebugError (NULL, 0, 1003, "Invalid option value", "Output directory name %s is too long", Argv[Index]);\r
- goto Fail;\r
- }\r
\r
mOptions.OutputDirectory = (CHAR8 *) malloc (strlen (Argv[Index]) + strlen ("\\") + 1);\r
if (mOptions.OutputDirectory == NULL) {\r
DebugError (NULL, 0, 1001, "Missing option", "VFR file name is not specified.");\r
goto Fail;\r
} else {\r
- if (strlen (Argv[Index]) > MAX_PATH) {\r
- DebugError (NULL, 0, 1003, "Invalid option value", "VFR file name %s is too long.", Argv[Index]);\r
- goto Fail;\r
- }\r
mOptions.VfrFileName = (CHAR8 *) malloc (strlen (Argv[Index]) + 1);\r
if (mOptions.VfrFileName == NULL) {\r
DebugError (NULL, 0, 4001, "Resource: memory can't be allocated", NULL);\r
}\r
\r
*pExt = '\0';\r
- if (strlen (pFileName) > MAX_PATH - 1) {\r
- *pExt = '.';\r
- return -1;\r
- }\r
\r
mOptions.VfrBaseFileName = (CHAR8 *) malloc (strlen (pFileName) + 1);\r
if (mOptions.VfrBaseFileName == NULL) {\r
strlen (mOptions.VfrBaseFileName) +\r
strlen (VFR_PACKAGE_FILENAME_EXTENSION) +\r
1;\r
- if (Length > MAX_PATH) {\r
- return -1;\r
- }\r
\r
mOptions.PkgOutputFileName = (CHAR8 *) malloc (Length);\r
if (mOptions.PkgOutputFileName == NULL) {\r
strlen (mOptions.VfrBaseFileName) +\r
strlen (".c") +\r
1;\r
- if (Length > MAX_PATH) {\r
- return -1;\r
- }\r
\r
mOptions.COutputFileName = (CHAR8 *) malloc (Length);\r
if (mOptions.COutputFileName == NULL) {\r
strlen (mOptions.VfrBaseFileName) +\r
strlen (VFR_PREPROCESS_FILENAME_EXTENSION) +\r
1;\r
- if (Length > MAX_PATH) {\r
- return -1;\r
- }\r
\r
mOptions.PreprocessorOutputFileName = (CHAR8 *) malloc (Length);\r
if (mOptions.PreprocessorOutputFileName == NULL) {\r
strlen (mOptions.VfrBaseFileName) +\r
strlen (VFR_RECORDLIST_FILENAME_EXTENSION) +\r
1;\r
- if (Length > MAX_PATH) {\r
- return -1;\r
- }\r
\r
mOptions.RecordListFile = (CHAR8 *) malloc (Length);\r
if (mOptions.RecordListFile == NULL) {\r