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
cmd2.c
cmd3.c
cmdtab.c
collect.c
def.h
edit.c
extern.h
fio.c
getname.c
glob.h
head.c
lex.c
list.c
mail.1
main.c
Makefile
Makefile.depend
names.c
pathnames.h
popen.c
quit.c
rcv.h
send.c
strings.c
temp.c
tty.c
util.c
v7.local.c
vars.c
version.c