freebsd-src/usr.bin/mail
Lexi Winter 6c951b3717 mail: add volatile in grabh()
setjmp() requires that any stack variables modified between the setjmp
call and the longjmp() must be volatile.  This means that 'saveint' in
grabh() must be volatile, since it's modified after the setjmp().
Otherwise, the signal handler is not properly restored, resulting in a
crash (SIGBUS) if ^C is typed twice while composing.

PR:		276119
Reported by:	Christopher Davidson <christopher.davidson@gmail.com>
MFC after:	2 weeks
Pull Request:	https://github.com/freebsd/freebsd-src/pull/993
2024-01-04 21:40:53 -05:00
..
misc
cmd1.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
cmd2.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
cmd3.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
cmdtab.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
collect.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
def.h usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
edit.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
extern.h usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
fio.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
getname.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
glob.h usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
head.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
lex.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
list.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
mail.1 usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
main.c Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
Makefile usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
names.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
pathnames.h usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
popen.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
quit.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
rcv.h usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
send.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
strings.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
temp.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
tty.c mail: add volatile in grabh() 2024-01-04 21:40:53 -05:00
util.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
v7.local.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
vars.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
version.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00