Skip to content

lib: check hostname in resolver_resolve#26

Open
inspurSDN wants to merge 1 commit intosonic-net:frr/7.5from
inspurSDN:check_hostname_in_resolver_resolve_7.5
Open

lib: check hostname in resolver_resolve#26
inspurSDN wants to merge 1 commit intosonic-net:frr/7.5from
inspurSDN:check_hostname_in_resolver_resolve_7.5

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