#1080070 rlwrap: A suspicious memory leak in 'src/readline.c'

Package:
rlwrap
Source:
rlwrap
Description:
readline feature command line wrapper
Submitter:
r10922044
Date:
2024-08-30 09:18:10 UTC
Severity:
normal
#1080070#5
Date:
2024-08-30 09:08:29 UTC
From:
To:
Dear Maintainers,

We are researching static analysis for recurring vulnerabilities. When
using our tool to test on 'rlwrap', we found a memory-leak bug at
'debug_ad_hoc' in 'src/readline.c'. The memory returned by
'entire_history_as_one_string' in line 710 would not be freed before
exit. We suggest adding codes to catch and then deallocate it before
exit.

Thank you for maintaining rlwrap.

Best regards