Skip to content

Conversation

inspurSDN
Copy link

@inspurSDN inspurSDN commented Jul 7, 2022

resolver_resolve should check hostname is null or not.

if ares_gethostbyname() get a null hostname string, it will access a null pointer and crash.

test result:
null

trace code:
log1
log1-1

resolver_resolve should check hostname is null or not.

if ares_gethostbyname() get null hostname string, the hostname string will access a null pointer and crash.
@inspurSDN
Copy link
Author

inspurSDN commented Jul 7, 2022

@lguohan could you help to review it?

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.

1 participant