-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
std.Progress
: line_upper_bound_len
is incorrectly calculated
#20161
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
Labels
bug
Observed behavior contradicts documented or intended behavior
standard library
This issue involves writing Zig code for the standard library.
Milestone
Comments
squeek502
added a commit
to squeek502/zig
that referenced
this issue
Jun 2, 2024
…bound_len The \r\n is necessary to get the progress tree to work properly in the old console when ENABLE_VIRTUAL_TERMINAL_PROCESSING and DISABLE_NEWLINE_AUTO_RETURN are set. The line_upper_bound_len fix addresses part of ziglang#20161
andrewrk
pushed a commit
that referenced
this issue
Jun 2, 2024
…bound_len The \r\n is necessary to get the progress tree to work properly in the old console when ENABLE_VIRTUAL_TERMINAL_PROCESSING and DISABLE_NEWLINE_AUTO_RETURN are set. The line_upper_bound_len fix addresses part of #20161
Rexicon226
pushed a commit
to Rexicon226/zig
that referenced
this issue
Jun 9, 2024
…bound_len The \r\n is necessary to get the progress tree to work properly in the old console when ENABLE_VIRTUAL_TERMINAL_PROCESSING and DISABLE_NEWLINE_AUTO_RETURN are set. The line_upper_bound_len fix addresses part of ziglang#20161
Rexicon226
pushed a commit
to Rexicon226/zig
that referenced
this issue
Jun 9, 2024
closes ziglang#20161 problem introduced in e09963d
ryoppippi
pushed a commit
to ryoppippi/zig
that referenced
this issue
Jul 5, 2024
…bound_len The \r\n is necessary to get the progress tree to work properly in the old console when ENABLE_VIRTUAL_TERMINAL_PROCESSING and DISABLE_NEWLINE_AUTO_RETURN are set. The line_upper_bound_len fix addresses part of ziglang#20161
ryoppippi
pushed a commit
to ryoppippi/zig
that referenced
this issue
Jul 5, 2024
closes ziglang#20161 problem introduced in e09963d
SammyJames
pushed a commit
to SammyJames/zig
that referenced
this issue
Aug 7, 2024
…bound_len The \r\n is necessary to get the progress tree to work properly in the old console when ENABLE_VIRTUAL_TERMINAL_PROCESSING and DISABLE_NEWLINE_AUTO_RETURN are set. The line_upper_bound_len fix addresses part of ziglang#20161
SammyJames
pushed a commit
to SammyJames/zig
that referenced
this issue
Aug 7, 2024
closes ziglang#20161 problem introduced in e09963d
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Observed behavior contradicts documented or intended behavior
standard library
This issue involves writing Zig code for the standard library.
Uh oh!
There was an error while loading. Please reload this page.
Zig Version
master
Steps to Reproduce and Observed Behavior
Probably dumb way to reproduce the problem:
should eventually hit something like:
There are two problems here:
\n
byte is not included in the calculationup_one_line
sequences (butline_upper_bound_len
only calculates the space for one):zig/lib/std/Progress.zig
Lines 1093 to 1096 in 64ef45e
Expected Behavior
Index-of-out-bounds should not be possible
The text was updated successfully, but these errors were encountered: