Skip to content

common: readline: fix memory leak of plain text secret

Antonio Cardace requested to merge ac/readline_fix_leaks into master

After a user entered a secret it would get stored in the readline history data structure (in plain text) and eventually get leaked.

This set of commits instructs readline to not store any secret in its history, zeroes-out memory used to store plain-text secrets and fixes another not related memory leak.

Edited by Antonio Cardace

Merge request reports