yellowman / nsh

OpenBSD networking configuration shell
http://www.nmedia.net/nsh/
Other
174 stars 27 forks source link

Null pointer passed as 2nd argument to string copy function #155

Closed smytht closed 2 weeks ago

smytht commented 2 weeks ago

Bug reported by the clang static analyzer.

Description: Null pointer passed as 2nd argument to string copy function File: /home/tom/nsh-master/nsh/bridge.c Line: 1181

Proposed fix checks for Null on 2nd argument before calling the strlcopy function

smytht commented 2 weeks ago

Closing Pull Request so I can use different Branches to pull in different requests