NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/53204: Leak in rl_callback_read_char?



>Number:         53204
>Category:       lib
>Synopsis:       Leak in rl_callback_read_char?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 22 22:10:00 +0000 2018
>Originator:     Federico Schwindt
>Release:        readline.c rev 1.146
>Organization:
>Environment:
N/A
>Description:
In libedit/readline.c rl_callback_read_char(), buf is strdup'd but not freed afterwards.

The readline documentation does not mention anything about freeing the input to the  callback function. This seems to be a bug specific to the readline emulation when using the alternate interface.
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index