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

bugfix: fsm_endid_get should sort with result count, not buffer size. #493

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

silentbicycle
Copy link
Collaborator

fsm_endid_get's id_buf_count argument is expected to "have enough cells (according to id_buf_count)", but if it has more than enough, stale data can get sorted into the result.

Add a test, tests/endids/endids_reused_buffer.c

fsm_endid_get's id_buf_count argument is expected to "have enough
cells (according to id_buf_count)", but if it has more than enough,
stale data can get sorted into the result.

Add a test, tests/endids/endids_reused_buffer.c
@katef katef added the bug label Sep 13, 2024
@katef katef merged commit 521789f into main Sep 13, 2024
346 checks passed
@katef
Copy link
Owner

katef commented Sep 13, 2024

Thanks!

@katef katef deleted the sv/bugfix-endid-qsort-count branch September 13, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants