Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input file Description/TableName without terminator causes segfault #43

Closed
skliper opened this issue May 26, 2020 · 1 comment · Fixed by #46
Closed

Input file Description/TableName without terminator causes segfault #43

skliper opened this issue May 26, 2020 · 1 comment · Fixed by #46
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@skliper
Copy link
Contributor

skliper commented May 26, 2020

Describe the bug
Segfault at:

strcpy(FileHeader.Description, TblFileDef.Description);

Likely also an issue with TableName:

strcpy(TableHeader.TableName, TblFileDef.TableName);

To Reproduce
Steps to reproduce the behavior:

  1. Create a table input file with a 32 byte description (no null terminator)
  2. Run elf2cfetbl

Expected behavior
Error or warn/truncate.

Code snips
See above

System observed on:

  • Versions: Master bundle

Additional context
Identified by JSC

Reporter Info
Jacob Hageman - NASA/GSFC

@skliper skliper added bug Something isn't working good first issue Good for newcomers labels May 26, 2020
@skliper skliper linked a pull request Jan 26, 2021 that will close this issue
@skliper
Copy link
Contributor Author

skliper commented Jan 26, 2021

This was fixed by #43.

@skliper skliper closed this as completed Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant