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 segfault in aliases command #3384

Merged
merged 2 commits into from
Jan 26, 2024
Merged

Fix segfault in aliases command #3384

merged 2 commits into from
Jan 26, 2024

Conversation

luis4a0
Copy link
Contributor

@luis4a0 luis4a0 commented Jan 24, 2024

When the alias dictionary contained an empty context, the table formatter segfaulted.

Fixes #3383.

Check that the alias dictionary is correctly printed in case there
exists an empty context.
The table formatter did not consider the case on which existed an
empty context. It tried to iterate over a nonexisting dictionary.
@luis4a0 luis4a0 force-pushed the fix-aliases-segfault branch from f2472dc to a1b6a44 Compare January 24, 2024 19:29
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5172bd3) 84.18% compared to head (a1b6a44) 84.18%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3384      +/-   ##
==========================================
- Coverage   84.18%   84.18%   -0.01%     
==========================================
  Files         251      251              
  Lines       13816    13820       +4     
==========================================
+ Hits        11631    11634       +3     
- Misses       2185     2186       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@townsend2010
Copy link
Contributor

Hey @andrei-toterman! Could you please review this soon? Thanks!

Copy link
Contributor

@andrei-toterman andrei-toterman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected now. Thanks, @luis4a0!

@andrei-toterman andrei-toterman added this pull request to the merge queue Jan 26, 2024
Merged via the queue into main with commit f42a1bd Jan 26, 2024
13 of 14 checks passed
@andrei-toterman andrei-toterman deleted the fix-aliases-segfault branch January 26, 2024 14:02
townsend2010 pushed a commit that referenced this pull request Jan 31, 2024
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.

[regression] multipass aliases command throws segmentation fault
3 participants