summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd.c
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2019-05-03 16:31:34 +0000
committertobias <tobias@openbsd.org>2019-05-03 16:31:34 +0000
commitdfe6885aac8e07aad460a3ee22c8affd9b255d72 (patch)
tree752f69e6308e2f0b9f6cbfea33caf20937930f33 /usr.bin/tmux/cmd.c
parentIn man(1) mode with a specific section requested, (diff)
downloadwireguard-openbsd-dfe6885aac8e07aad460a3ee22c8affd9b255d72.tar.xz
wireguard-openbsd-dfe6885aac8e07aad460a3ee22c8affd9b255d72.zip
Fixed endless loop/ OOB write on 64 bit systems with large buffers.
If a buffer exceeds UINT_MAX (which is only possible on 64 bit systems) an endless loop or OOB write can occur in buffer-specific readline functions. Switching variables in function scope to size_t solves these issue because relevant fields in struct buffer are already size_t. ok cheloha, deraadt, nicm, tedu
Diffstat (limited to 'usr.bin/tmux/cmd.c')
0 files changed, 0 insertions, 0 deletions