mirror of https://github.com/c-ares/c-ares.git
empty hquery->name could lead to invalid memory access (#367)
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)pull/368/head
parent
4d6975b3ec
commit
c15f403875
1 changed files with 6 additions and 5 deletions
Loading…
Reference in new issue