dparrish / libcli

Libcli provides a shared library for including a Cisco-like command-line interface into other software. It's a telnet interface which supports command-line editing, history, authentication and callbacks for a user-definable function tree.
https://dparrish.com/link/libcli
GNU Lesser General Public License v2.1
289 stars 143 forks source link

Segfault on ambiguous optarg during tab/help parsing #58

Closed RobSanders closed 4 years ago

RobSanders commented 4 years ago

Found a segfault condition during tab/help parsing. Suppose a command has two optional arguments 'opt1' and 'opt2'. If the command line is "command opt" this will segfault. Problem has been identified and will be fixed in 1.10.4, to be release very shortly.

RobSanders commented 4 years ago

Fixed issue in V1.10.4