Skip to content

Count the -ptr pass's tested names in the -diff removed-name budget - #496

Open
nova-loop wants to merge 1 commit into
TMHSDigital:mainfrom
nova-loop:fix/diff-budget-ptr-names
Open

nova-loop wants to merge 1 commit into
TMHSDigital:mainfrom
nova-loop:fix/diff-budget-ptr-names

Conversation

@nova-loop

Copy link
Copy Markdown
Contributor

Description

AI disclosure: this change was prepared with AI assistance (an AI agent wrote the code and tests; I reviewed and ran them).

-diff's removed-name check spent -max-queries less the names the main and -permute passes tested, but not the names the -ptr pass tested. The summary now records the PTR pass's tested count as ptr_processed (set in report.PTR, shared by CLI and TUI) and -diff subtracts it.

Related Issue

Closes #495

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Test updates

Checklist

  • I have read the CONTRIBUTING document
  • My code follows the code style of this project
  • I have added/updated appropriate comments to the code
  • I have added tests that prove my fix is effective or that my feature works (TestE2EDiffBudgetCountsPTRNames; fails without the fix)
  • New and existing unit tests pass locally with my changes (go test ./...)
  • I have updated the documentation accordingly (docs/output.md, stats.v1.json schema, CHANGELOG)

Ethical Considerations

  • This change maintains or improves the security controls in the tool (the query budget is honoured)
  • This change follows the educational/legitimate security testing focus of the project
  • I have considered potential misuse cases and taken appropriate steps to prevent them

Additional Information

New optional report field ptr_processed (omitted when 0).

This branch has not been deployed

No deployments
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.

-diff's removed-name budget ignores the names the -ptr pass tested

1 participant