8000 Fix integer overflow in `string repeat` by henrikhorluck · Pull Request #9900 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

Fix integer overflow in string repeat#9900

Merged
faho merged 1 commit intofish-shell:masterfrom
henrikhorluck:fix/infinite_repeat
Jul 17, 2023
Merged

Fix integer overflow in string repeat#9900
faho merged 1 commit intofish-shell:masterfrom
henrikhorluck:fix/infinite_repeat

Conversation

@henrikhorluck
Copy link
Contributor

We could end up overflowing if we print out something that's a multiple of the
chunk size, which would then finish printing in the chunk-printing, but not
break out early.

@faho
Copy link
Member
faho commented Jul 17, 2023

Would you like this merged before #9854, which would mean that would need to be rebased again?

@faho faho added the bug Something that's not working as intended label Jul 17, 2023
@faho faho added this to the fish 3.6.2 milestone Jul 17, 2023
@henrikhorluck
Copy link
Contributor Author

Would you like this merged before #9854, which would mean that would need to be rebased again?

Yes that's fine, this isn't too bad to fix in a rebase

We could end up overflowing if we print out something that's a multiple of the
chunk size, which would then finish printing in the chunk-printing, but not
break out early.
@henrikhorluck henrikhorluck force-pushed the < 8000 span class=" css-truncate-target">fix/infinite_repeat branch from 9a6e00b to cb0c6fe Compare July 17, 2023 13:17
@faho faho merged commit 6325b36 into fish-shell:master Jul 17, 2023
@faho
Copy link
Member
faho commented Jul 17, 2023

Alright, merged, thanks!

Might be worth it to hold off on rebasing #9854 while there's review going on, not sure github won't mess up the comments otherwise.

@henrikhorluck henrikhorluck deleted the fix/infinite_repeat branch July 17, 2023 13:42
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something that's not working as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0