Update to autocutsel-0.10.1

Includes our off-by-one fix.
This commit is contained in:
jca 2021-03-05 09:59:58 +00:00
parent 07095439e8
commit 9dfd7c6871
3 changed files with 4 additions and 23 deletions

View File

@ -1,10 +1,9 @@
# $OpenBSD: Makefile,v 1.16 2020/03/22 01:14:31 jca Exp $
# $OpenBSD: Makefile,v 1.17 2021/03/05 09:59:58 jca Exp $
COMMENT= keep X clipboard and cutbuffer in sync
V= 0.10.0
V= 0.10.1
DISTNAME= autocutsel-$V
REVISION= 4
CATEGORIES= x11

View File

@ -1,2 +1,2 @@
SHA256 (autocutsel-0.10.0.tar.gz) = ojdjMKoaZfNmIVlaWk61wsq8FoVLadZsKF8R+JvQXj8=
SIZE (autocutsel-0.10.0.tar.gz) = 329527
SHA256 (autocutsel-0.10.1.tar.gz) = 8X4G1C90lENtSyb0vgtrDaOUgcBADJZ3jkuQW2NB6xc=
SIZE (autocutsel-0.10.1.tar.gz) = 337872

View File

@ -1,18 +0,0 @@
$OpenBSD: patch-common_c,v 1.1 2017/11/07 09:38:51 jca Exp $
Fix off-by-one spotted by MALLOC_OPTIONS=S.
autocutsel(13807) in free(): chunk canary corrupted 0x9be30f1ad00 0x60@0x60
Index: common.c
--- common.c.orig
+++ common.c
@@ -91,7 +91,7 @@ Boolean ConvertSelection(Widget w, Atom *selection, At
XmuConvertStandardSelection(w, req->time, selection, target, type,
&std_targets, &std_length, format);
- *value = XtMalloc(sizeof(Atom)*(std_length + 4));
+ *value = XtMalloc(sizeof(Atom)*(std_length + 5));
targetP = *(Atom**)value;
atoms = targetP;
*length = std_length + 5;