Skip to content

Fix #983: Use OS_MAX_FILE_NAME instead of OS_MAX_PATH_LEN in CFE_FS_ExtractFilenameFromPath#984

Open
linerfan5114 wants to merge 1 commit into
nasa:mainfrom
linerfan5114:fix-983-cfe-fs-filename-buffer-size
Open

Fix #983: Use OS_MAX_FILE_NAME instead of OS_MAX_PATH_LEN in CFE_FS_ExtractFilenameFromPath#984
linerfan5114 wants to merge 1 commit into
nasa:mainfrom
linerfan5114:fix-983-cfe-fs-filename-buffer-size

Conversation

@linerfan5114
Copy link
Copy Markdown

Closes #983

CFE_FS_ExtractFilenameFromPath() validates the extracted filename length against OS_MAX_PATH_LEN, but it should use OS_MAX_FILE_NAME since it only extracts the file name portion, not the full path. This inconsistency with OSAL parameter definitions can cause validation errors when a user defines a variable using OS_MAX_FILE_NAME.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CFE_FS_ExtractFilenameFromPath() should use OS_MAX_FILE_NAME instead of OS_MAX_PATH_LEN

1 participant