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

Address Sanitizer exception on hello world example #539

Closed
lookbusy1344 opened this issue Sep 15, 2022 · 1 comment · Fixed by #633
Closed

Address Sanitizer exception on hello world example #539

lookbusy1344 opened this issue Sep 15, 2022 · 1 comment · Fixed by #633

Comments

@lookbusy1344
Copy link

I was trying the hello world example with VS2022 and Address Sanitizer. When I request 127:0.0.1:18080 in Edge browser, I get an Asan error.

Its caused by the request for “/favicon.ico” which seems to sometimes have whitespace (\x10 or \x13) at the end.
For some reason this causes qs_parse() in query_string.h to cause an asan error on the calls to strcspn().
I bodged a fix by stripping whitespace from the end of url_ in the query_string constructor. Is this just an artefact of Microsoft’s Asan implementation. Any thought?

@kiner-shah
Copy link
Contributor

Can you provide details? Which compiler and its version, the trace returned by ASAN showing line numbers, etc.?

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 a pull request may close this issue.

2 participants