FreeBSD Bugzilla – Attachment 10531 Details for
Bug 21089
[patch] vi(1) silently corrupts open file on SIGINT when entering :wq in command mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
nvi-netbsd-v_txt.c-3.diff
nvi-netbsd-v_txt.c-3.diff (text/x-diff; charset=us-ascii), 652 bytes, created by
Jaakko Heinonen
on 2008-02-21 13:23:34 UTC
(
hide
)
Description:
nvi-netbsd-v_txt.c-3.diff
Filename:
MIME Type:
Creator:
Jaakko Heinonen
Created:
2008-02-21 13:23:34 UTC
Size:
652 bytes
patch
obsolete
>Obtained from: NetBSD > >date: 2003/06/06 08:06:47; author: aymeric; state: Exp; lines: +3 -2 >branches: 1.11.4; >When an error occurs in v_txt(), leave input mode too. >Otherwise, (among other things) db_get() thinks it can re-use the TEXT buffers >when it's not true, leading to a crash because that TEXT buffer will be >released just before it is actually used to create a new one. >This fixes PR#21797. > >diff -p -u -r1.10 -r1.11 >--- v_txt.c 6 Jan 2003 20:30:41 -0000 1.10 >+++ v_txt.c 6 Jun 2003 08:06:47 -0000 1.11 >@@ -1474,6 +1474,7 @@ done: /* Leave input mode. */ > > err: > alloc_err: >+ F_CLR(sp, SC_TINPUT); > txt_err(sp, &sp->tiq); > return (1); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21089
:
10526
|
10527
|
10528
|
10529
|
10530
| 10531 |
10532