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

bug: Undefined behavior regression #141

Merged
merged 3 commits into from
Feb 23, 2024
Merged

bug: Undefined behavior regression #141

merged 3 commits into from
Feb 23, 2024

Conversation

zfields
Copy link
Collaborator

@zfields zfields commented Feb 22, 2024

Previously we had allowed strings to be sent via note-c without a newline-terminator.
Subsequently, we decided this was undefined behavior that should not be supported.
This caused a regression in downstream testing, and we have restored the original
behavior (although undefined by the Notecard communication specification).

Previously we had allowed strings to be sent via `note-c` without a newline-terminator.
Subsequently, we decided this was undefined behavior that should not be supported.
This caused a regression in downstream testing, and we have restored the original
behavior (although undefined by the Notecard communication specification).
Allocated string did NOT have a NULL-terminator required by `strstr`.
Fake Function Framework (FFF) does not make copies of strings for testing mocks,
so it was instead accessing released memory which was triggering valgrind errors.
@zfields zfields force-pushed the zak-ub-fix branch 3 times, most recently from 4639a45 to 2bc8d8f Compare February 23, 2024 13:13
@zfields zfields merged commit 21103de into master Feb 23, 2024
12 checks passed
@zfields zfields deleted the zak-ub-fix branch February 23, 2024 13:38
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.

2 participants