HardenedBSD/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
edit.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
extern.h
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
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
main.c
Makefile
Makefile.depend
names.c usr.bin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
pathnames.h
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
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