[x] I signed and emailed the appropriate Contributor License Agreement to GSFC-SoftwareRelease@mail.nasa.gov and copied cfs-program@lists.nasa.gov.
Describe the contribution
The default size of the "EventText" string is 32, but the unit test had hard coded string sizes of 50 chars, which will overflow the buffer.
Use "sizeof" operator to adjust to the actual size of the destination to correct the issue.
Fixes #66
Testing performed
Steps taken to test the contribution:
Build steps '...'
Execution steps '...'
Expected behavior changes
No more buffer overflow
System(s) tested on
Debian Bookworm
Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.
Checklist (Please check before submitting)
Describe the contribution The default size of the "EventText" string is 32, but the unit test had hard coded string sizes of 50 chars, which will overflow the buffer.
Use "sizeof" operator to adjust to the actual size of the destination to correct the issue.
Fixes #66
Testing performed Steps taken to test the contribution:
Expected behavior changes No more buffer overflow
System(s) tested on Debian Bookworm
Contributor Info - All information REQUIRED for consideration of pull request Joseph Hickey, Vantage Systems, Inc.