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

Word-like cutsets of strings? #37

Open
ainar-g opened this issue Aug 26, 2021 · 1 comment
Open

Word-like cutsets of strings? #37

ainar-g opened this issue Aug 26, 2021 · 1 comment

Comments

@ainar-g
Copy link
Contributor

ainar-g commented Aug 26, 2021

See golang/go#47822 and especially this comment. Code like:

s = strings.TrimLeft(s, "user=")

is probably wrong.

@dgryski
Copy link
Owner

dgryski commented Sep 8, 2021

Interesting, although I don't know if semgrep or ruleguard is powerful enough to solve it in the general case. We'd just have deny list of "odd looking patterns" to watch out for, but obviously we would be far from catching everything.

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

No branches or pull requests

2 participants