Skip to content

Conversation

lmarszal
Copy link
Contributor

If hquery->name is empty (=="\0"), &hquery->name[strlen(hquery->name)-1] would point to "random" place in memory. This is causing some of my address sanitizer tests to fail.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.625% when pulling 01fe50e on lmarszal:empty-strings into 4d6975b on c-ares:master.

@bradh352 bradh352 merged commit c15f403 into c-ares:master Oct 21, 2020
@lmarszal lmarszal deleted the empty-strings branch October 21, 2020 12:43
sergepetrenko pushed a commit to tarantool/c-ares that referenced this pull request Jul 29, 2022
If hquery->name is empty (=="\0"), &hquery->name[strlen(hquery->name)-1] would point to "random" place in memory. This is causing some of my address sanitizer tests to fail.

Fix By: Łukasz Marszał (@lmarszal)
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.

3 participants