yellowman / nsh

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

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

Closed smytht closed 2 months ago

smytht commented 2 months 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 months ago

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