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

Fix to_chars_static buffer size #1026

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

johnmcfarlane
Copy link
Owner

No description provided.

@johnmcfarlane johnmcfarlane force-pushed the fix-to_chars_static-buffer-size branch 7 times, most recently from 5f75b2a to d35f5a8 Compare January 30, 2022 11:04
@johnmcfarlane johnmcfarlane force-pushed the fix-to_chars_static-buffer-size branch from d35f5a8 to e6df31b Compare May 25, 2022 23:59
John McFarlane added 2 commits May 27, 2022 22:58
- assumed decimal
- sometimes got it wrong
- potentially got it badly wrong
- now uses lookup table to ensure the right number of characters to
  represent in integer of a given number of binary digits
- table generator: https://godbolt.org/z/sYc7v185T
- correctness: ~95%
- probably of causing buffer overrun: < 1%
@johnmcfarlane johnmcfarlane force-pushed the fix-to_chars_static-buffer-size branch from e6df31b to e5a6d2c Compare May 27, 2022 21:58
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.

1 participant