-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
io_lib:format/3 with chars_limit crashes on certain data #5053
Labels
Comments
uabboli
added a commit
that referenced
this issue
Jul 16, 2021
uabboli
added a commit
that referenced
this issue
Jul 16, 2021
* hasse/stdlib/chars_limit_fix/GH-5053/OTP-17525: stdlib: Fix a concerning io_lib option 'chars_limit'
Hi, will this be merged into OTP-22 too? |
IngelaAndin
pushed a commit
that referenced
this issue
Jul 22, 2021
…int-23 * hasse/stdlib/chars_limit_fix/GH-5053/OTP-17525: stdlib: Fix a concerning io_lib option 'chars_limit' # Conflicts: # lib/stdlib/test/io_SUITE.erl
IngelaAndin
pushed a commit
that referenced
this issue
Jul 22, 2021
…int-24 * hasse/stdlib/chars_limit_fix/GH-5053/OTP-17525: stdlib: Fix a concerning io_lib option 'chars_limit' # Conflicts: # lib/stdlib/test/io_SUITE.erl
Thanks for the bug report. A fix has been merged to maint and master, and patches have been created for 23 and 24 (OTP-23.3.4.5, OTP-24.0.4). There will be a patch for 22. |
hareen-kancharla
added a commit
to couchbasedeps/erlang
that referenced
this issue
Jul 23, 2021
erlang#5053 This is being temporarily committed (along with moving chars_limit back to 50K) to get more test coverage.
bjorng
pushed a commit
that referenced
this issue
Sep 3, 2021
…int-22 * hasse/stdlib/chars_limit_fix/GH-5053/OTP-17525: stdlib: Fix a concerning io_lib option 'chars_limit' # Conflicts: # lib/stdlib/test/io_SUITE.erl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
On certain data
io_lib:format()
crashes when chars_limit is used with a badarg error.To Reproduce
Run the following snippet. The link to
bucket_conf.txt
: https://pastebin.com/dl/NYMGCzWU.Calling
io_lib_format:fwrite/3
directly produces the following crash:Expected behavior
The snippet should not crash.
Affected versions
Reproducible on OTP-22 and OTP-24.
The text was updated successfully, but these errors were encountered: