OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Nicholas Marriott (nicmcvs.openbsd.org)
Date: Thu Jul 02 2009 - 11:15:44 CDT


CVSROOT: /cvs
Module name: src
Changes by: nicmcvs.openbsd.org 2009/07/02 10:15:43

Modified files:
        usr.bin/tmux : cmd-paste-buffer.c paste.c window-copy.c

Log message:
Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal error
when trying to paste them, found by me, and miscalculation of the start/end
causing random fatal errors when copying in copy-mode, reported by sthen.

ok sthen "put it in" deraadt