Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match exactly against cfgstring #691

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

geordieintheshellcode
Copy link

Two bug fixes:

  1. When searching for a suitable handler in find_handler ensure that handler->subtype and the config string match exactly. The previous code would erroneously match config strings which were a prefix match of handler->subtype. For example, the config string "foo" would erroneously match against the subtype "foobar".
  2. This is slightly more paranoid. Ensure that when matching the config string against the expected prefix ("tcm-user") the strings match exactly. The previous code would erroneously match the config string "tcm-userXXX" against "tcm-user".

@geordieintheshellcode
Copy link
Author

Wondering if someone is able to take a look at this PR please?

@lxbsz
Copy link
Collaborator

lxbsz commented Feb 21, 2023

And also for this could you fix the commit comments as in #693 ?

Thanks,

libtcmu.c Outdated Show resolved Hide resolved
Ensure we pattern match 'cfgstring' against handler type exactly.
Ensure we pattern match the cfgstring prefix against 'tcm-user' exactly.

Signed-off-by: Alex Reid <[email protected]>
@geordieintheshellcode
Copy link
Author

Comments addressed and commit comment fixed.

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