Skip to content

Conversation

niik
Copy link
Member

@niik niik commented Nov 21, 2024

Closes #15355

Description

By loading the output from git log as a buffer we can avoid premature conversion to string and the risk of running into commit message bombs. Instead we're now limited by the available memory on the machine and if we encounter a commit message subject or body that exceeds 100kb we'll truncate it at that.

Screenshots

Release notes

Notes:

Copy link
Contributor

@tidy-dev tidy-dev left a comment

Choose a reason for hiding this comment

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

Nice! No big commit 💥

All the toString repetition is a bit of a bummer, but makes sense.

@niik niik merged commit f93bb35 into development Nov 25, 2024
9 checks passed
@niik niik deleted the crashapalooza branch November 25, 2024 21:39
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.

RangeError: Invalid string length (History can't be opened / Github Desktop crashes)
2 participants