FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use concat instead of push around `listFolders` by aeisenberg · Pull Request #1139 · github/codeql-action · GitHub

Use concat instead of push around listFolders - #1139

Merged
aeisenberg merged 2 commits into
mainfrom
aeisenberg/concat-not-push
Jul 13, 2022
Merged

aeisenberg merged 2 commits into
mainfrom
aeisenberg/concat-not-push

Conversation

Copy link
Copy Markdown
Contributor

This avoids stack overflows when using the spread operator on directories that have many, many children.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

aeisenberg requested a review from a team as a code owner July 12, 2022 16:15

henrymercer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good. While we're here, perhaps it's worth auditing the rest of the spread operators in the codebase to make sure these aren't likely to cause a stack overflow.

aeisenberg force-pushed the aeisenberg/concat-not-push branch from e60faa7 to b7e2196 Compare July 12, 2022 17:26
This avoids stack overflows when using the spread operator on
directories that have many, many children.
aeisenberg force-pushed the aeisenberg/concat-not-push branch from b7e2196 to 7ce9ef9 Compare July 12, 2022 20:23

Copy link
Copy Markdown
Contributor Author

I did a quick look and did not find any other likely dangerous locations.

aeisenberg enabled auto-merge July 12, 2022 20:24
aeisenberg disabled auto-merge July 12, 2022 21:19
aeisenberg enabled auto-merge July 12, 2022 21:19
aeisenberg merged commit 548f07e into main Jul 13, 2022
aeisenberg deleted the aeisenberg/concat-not-push branch July 13, 2022 09:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL