freebsd-nq/bin/sh
Jilles Tjoelker 4269bba2eb sh: Fix formal overflow in pointer arithmetic
The intention is to lower the value of the pointer, which according to ubsan
cannot be done by adding an unsigned quantity.

Reported by:	kevans
Approved by:	re (kib)
MFC after:	1 week
2018-09-05 19:16:09 +00:00
..
bltin General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
funcs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
tests sh: Don't treat % specially in CDPATH 2018-07-15 21:55:17 +00:00
alias.c sh: Fix use after free when resetting an in-use alias. 2017-04-16 22:10:02 +00:00
alias.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
arith_yacc.c
arith_yacc.h sh: Fix compiler warnings related to duplicate or missing declarations. 2015-03-01 21:46:55 +00:00
arith_yylex.c sh: Fix compiler warnings related to duplicate or missing declarations. 2015-03-01 21:46:55 +00:00
arith.h sh: Remove unused function declaration for arith_lex_reset(). 2017-03-18 20:41:07 +00:00
builtins.def Allow defining nofork builtins from builtins.def and move always-safe ones there. 2017-06-04 21:02:48 +00:00
cd.c sh: Don't treat % specially in CDPATH 2018-07-15 21:55:17 +00:00
cd.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
dot.profile Finish moving dot.cshrc and dot.profile to bin/csh/ and bin/sh/. 2018-08-29 16:59:19 +00:00
error.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
error.h sh: Make sure to process SIGINT if SETINTON re-enables processing. 2017-06-04 21:58:02 +00:00
eval.c sh: Don't leak wait* implementation details from jobs.c 2017-12-26 16:23:18 +00:00
eval.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
exec.c sh: Don't treat % specially in CDPATH 2018-07-15 21:55:17 +00:00
exec.h sh: Don't treat % specially in CDPATH 2018-07-15 21:55:17 +00:00
expand.c sh: Fix formal overflow in pointer arithmetic 2018-09-05 19:16:09 +00:00
expand.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
histedit.c sh: Call fc -e editor with interrupts enabled. 2017-06-06 21:08:05 +00:00
input.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
input.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
jobs.c sh: Refactor job status printing, preparing for -o pipefail and similar 2018-02-02 22:53:58 +00:00
jobs.h sh: Move various structs from jobs.h to jobs.c 2018-01-01 22:31:52 +00:00
mail.c sh: Don't use padvance() for MAIL/MAILPATH 2018-07-15 09:14:30 +00:00
mail.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
main.c sh: Don't treat % specially in CDPATH 2018-07-15 21:55:17 +00:00
main.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
Makefile Finish moving dot.cshrc and dot.profile to bin/csh/ and bin/sh/. 2018-08-29 16:59:19 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
memalloc.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
memalloc.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
miscbltin.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
mkbuiltins Don't hardcode /usr/bin as the path for mktemp in build tools 2018-02-06 15:41:35 +00:00
mknodes.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
mksyntax.c sh: Split CNL syntax category to avoid a check on state[level].syntax 2018-05-21 21:52:48 +00:00
mktokens Don't hardcode /usr/bin as the path for mktemp in build tools 2018-02-06 15:41:35 +00:00
myhistedit.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
mystring.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
mystring.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
nodes.c.pat Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nodetypes Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
options.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
options.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
output.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
output.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
parser.c sh: Split CNL syntax category to avoid a check on state[level].syntax 2018-05-21 21:52:48 +00:00
parser.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
profile Move all sh and csh files into bin/sh/ or bin/csh/ 2018-08-15 14:41:24 +00:00
redir.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
redir.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
sh.1 Describe how to prevent *.core files from being created using ulimit. 2018-07-19 13:09:29 +00:00
shell.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
show.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
show.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
TOUR sh: Update TOUR and comments for some code changes, some of them old. 2017-05-06 13:28:42 +00:00
trap.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
trap.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
var.c Allow overriding VTABSIZE at compile-time. 2018-02-13 16:48:57 +00:00
var.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00