diff options
author | 2009-07-12 17:33:18 +0000 | |
---|---|---|
committer | 2009-07-12 17:33:18 +0000 | |
commit | 0476b68ee088cc7b2a170ec500432597075d1297 (patch) | |
tree | b536084fbe1ca3add90b04bf4b917cdca6ed4412 /usr.bin/mandoc/main.c | |
parent | Clean up debug droppings in sr_raid1_set_vol_state(). (diff) | |
download | wireguard-openbsd-0476b68ee088cc7b2a170ec500432597075d1297.tar.xz wireguard-openbsd-0476b68ee088cc7b2a170ec500432597075d1297.zip |
Creating a key binding which replaces itself (such as "bind x bind x lsw")
frees the command list bound to the key while it is still being executed,
leading to a use after free. To prevent this, create a dead keys list and defer
freeing replaced or removed key bindings until the main loop when the key
binding will have finished executing.
Found by Johan Friis when creating a key binding to reload his configuration
file.
Diffstat (limited to 'usr.bin/mandoc/main.c')
0 files changed, 0 insertions, 0 deletions