Skip to content

Conversation

sudo-bmitch
Copy link
Contributor

Fixes issue

Fixes a panic when quotes are seen around the auth type

Describe the change

In addition to fixing the panic, this:

  • Rewrites parser with a separate element and syntax states to make it easier to parse quoted and escaped strings
  • Switches to the non-deprecated error vars
  • Adds fuzz testing and more tests

How to verify it

No user visible changes on well behaved registries.

Changelog text

  • Fix: Auth header parsing.

Please verify and check that the pull request fulfills the following requirements

  • Tests have been added or not applicable
  • Documentation has been added, updated, or not applicable
  • Changes have been rebased to main
  • Multiple commits to the same code have been squashed

- Fixes a panic when quotes are seen around the auth type
- Rewrites parser with a separate element and syntax states to make it easier to parse quoted and escaped strings
- Switches to the non-deprecated error vars
- Adds fuzz testing and more tests

Signed-off-by: Brandon Mitchell <git@bmitch.net>
@sudo-bmitch sudo-bmitch merged commit b6e71a5 into regclient:main Apr 19, 2025
5 checks passed
@sudo-bmitch sudo-bmitch deleted the pr-auth-parsing branch April 19, 2025 12:56
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.

1 participant