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

progressbar: Prevent length_error exception (RhBug:2184271) #449

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

m-blaha
Copy link
Member

@m-blaha m-blaha commented Apr 12, 2023

In case the current ticks in the progress bar are not set (default to -1), the std::string(progress, '=') might result in throwing std::length_error exception:

terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_M_create
Aborted (core dumped)

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2184271

In case the current ticks in the progress bar are not set (default to
-1), the `std::string(progress, '=')` might result in throwing
std::length_error exception:

terminate called after throwing an instance of 'std::length_error'
  what():  basic_string::_M_create
Aborted (core dumped)

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2184271
@kontura kontura merged commit 0c79a8e into main Apr 17, 2023
@kontura kontura deleted the mblaha/progress_bar branch April 17, 2023 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants