A potential bug of unchecked return value to null pointer dereference(3)
Closed this issue · 1 comments
ash1852 commented
hello,I found a potential bug of unchecked return value to null pointer dereference in source code of dynamips , would you help me check whether this bug is ture?thank you for your effort and patience very much.
step 1 :
In file dynamips/common/net.c , function ip_parse_cidr line 114 :
Function strchr executes and stores the return value to sl (sl can be null)
step 2 :
In file dynamips/common/net.c , function ip_parse_cidr line 115 :
Store 0 to sl