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
18 lines
502 B
Plaintext
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) {
|