Skip to content

Conversation

@spenserblack
Copy link
Owner

Expands the array size to fit all assigned elements.

Expands the array size to fit all assigned elements.
@spenserblack spenserblack added the release-ignore Do not include this PR in release notes label Nov 14, 2025
@spenserblack spenserblack requested a review from Copilot November 14, 2025 16:00
Copy link
Contributor

@Dvd-Znf Dvd-Znf left a comment

Choose a reason for hiding this comment

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

oops, sowry i think i forgor this in #24

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a critical stack smashing bug where the STATS_SIZE constant was incorrectly set to 7 while the get_stats() function assigns 8 elements (stats[0] through stats[7]), causing a buffer overflow.

  • Changed STATS_SIZE from 7 to 8 to match the actual number of fetch tools being tracked

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@spenserblack spenserblack merged commit edaa1d8 into main Nov 14, 2025
7 checks passed
@spenserblack spenserblack deleted the bugfix/stack-smashing branch November 14, 2025 16:16
@spenserblack
Copy link
Owner Author

oops, sowry i think i forgor this in #24

No worries! I didn't catch it either until after the merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-ignore Do not include this PR in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants