Skip to content

low CFE_MISSION_MAX_FILE_LEN and CFE_TBL_FILEDEF(..., "sample_app_table.tbl") causes silent non-truncation #730

@CDKnightNASA

Description

@CDKnightNASA

Describe the bug
I was scratching my head why my table file was named "sample_app_table.tbl\004" until I realized that CFE_MISSION_MAX_FILE_LEN is defined as "20" and "sample_app_table.tbl" is exactly 20 characters. If I had one more char, the compiler would err. But it accepts static definition of structs using strings that are the exact length, which loses the null terminator.

Expected behavior
Should allow file names of CFE_MISSION_MAX_FILE_LEN chars.

Reporter Info
[email protected]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions