diff options
author | Robin Jarry <robin@jarry.cc> | 2022-10-10 11:32:12 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-10-11 14:50:34 +0200 |
commit | 34014d3ceeebe8a9c131213fa56d1977fbc26b4a (patch) | |
tree | 4c8bdb975ccf8a052463f7316110c647be7e1994 /lib/ui | |
parent | 2eef2adfbdc4b1c0093021ad0f4ee3825f275906 (diff) | |
download | aerc-34014d3ceeebe8a9c131213fa56d1977fbc26b4a.tar.gz |
compose: avoid deadlock when adding new header
AddEditor acquires the lock and calls FocusEditor which also attempts to
acquire it. Since the lock is not re-entrant, it ends in deadlock.
Add an internal focusEditor fonction that does not acquire the lock.
Fixes: bf2bf8c242cb ("compose: prevent out of bounds access")
Reported-by: Moritz Poldrack <moritz@poldrack.dev>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Thomas Vigouroux <thomas.vigouroux@protonmail.com>
Diffstat (limited to 'lib/ui')
0 files changed, 0 insertions, 0 deletions