openbsd-ports/editors/joe/patches/patch-joe_main_c
jca 79f4cb983a Update to joe-4.1
From Daniel Jakots, patch to fix a use after free by Quentin Rameau,
input from sthen@

NEWS file at http://sourceforge.net/p/joe-editor/mercurial/ci/default/tree/NEWS.md
2015-10-03 17:58:07 +00:00

18 lines
502 B
Plaintext

$OpenBSD: patch-joe_main_c,v 1.1 2015/10/03 17:58:07 jca Exp $
Committed upstream
http://sourceforge.net/p/joe-editor/mercurial/ci/e26894707ac52a56d02c55af6e412d8fd96df94d/#diff-2
--- joe/main.c.orig Mon Aug 31 04:59:43 2015
+++ joe/main.c Sat Oct 3 18:09:12 2015
@@ -211,7 +211,7 @@ int edloop(int flg)
}
/* Restore modes */
- if (maint->curwin->watom->what & TYPETW) {
+ if (!leave && maint->curwin->watom->what & TYPETW) {
bw = (BW *)maint->curwin->object;
if (auto_off) {