freebsd-skq/bin/sh
Jilles Tjoelker 5e03b81fd4 sh: Avoid negative character values from $'\Uffffffff' etc.
The negative value was not expected and generated the low 8 bits as a byte,
which may be an invalid character encoding.

The final shift in creating the negative value was undefined as well.

Make the temporary variable unsigned to fix this.
2015-08-20 22:05:55 +00:00
..
bltin sh: Fix compiler warnings related to duplicate or missing declarations. 2015-03-01 21:46:55 +00:00
funcs
tests sh: Avoid negative character values from $'\Uffffffff' etc. 2015-08-20 22:05:55 +00:00
alias.c sh: Fix some arithmetic undefined behaviour. 2015-06-24 20:51:48 +00:00
alias.h
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
builtins.def
cd.c sh: Prefer "" to nullstr where possible. 2015-02-15 21:47:43 +00:00
cd.h
error.c sh: Fix more compiler warnings related to variable declarations. 2015-03-03 21:21:43 +00:00
error.h sh: Move some code from onint() to onsig(), making onint() noreturn. 2014-12-21 23:09:59 +00:00
eval.c sh: Fix more compiler warnings. 2015-03-01 22:32:23 +00:00
eval.h sh: Fix more compiler warnings. 2015-03-01 22:32:23 +00:00
exec.c sh: Fix some arithmetic undefined behaviour. 2015-06-24 20:51:48 +00:00
exec.h
expand.c Fix unitialized variable that broke sh on PowerPC starting with r278826. 2015-02-26 20:59:18 +00:00
expand.h sh: Remove EXP_REDIR. 2014-12-21 22:18:30 +00:00
histedit.c sh: Fix more compiler warnings. 2015-03-01 22:32:23 +00:00
input.c
input.h
jobs.c sh: Pass along SIGINT from a child if job control is enabled, even when not 2015-04-25 13:34:25 +00:00
jobs.h
mail.c sh: Prefer "" to nullstr where possible. 2015-02-15 21:47:43 +00:00
mail.h
main.c
main.h
Makefile Convert bin/ to LIBADD, reduce overlinking allow to build all components as 2014-11-25 11:15:40 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
memalloc.c sh: Add stsavestr(), like savestr() but allocates using stalloc(). 2015-02-15 21:41:29 +00:00
memalloc.h sh: Add stsavestr(), like savestr() but allocates using stalloc(). 2015-02-15 21:41:29 +00:00
miscbltin.c sh: Backslash-newline should not affect field splitting in read builtin. 2015-08-16 12:57:17 +00:00
mkbuiltins
mknodes.c sh: Fix more compiler warnings related to variable declarations. 2015-03-03 21:21:43 +00:00
mksyntax.c sh: Fix more compiler warnings related to variable declarations. 2015-03-03 21:21:43 +00:00
mktokens sh: Fix compiler warnings related to duplicate or missing declarations. 2015-03-01 21:46:55 +00:00
myhistedit.h
mystring.c
mystring.h
nodes.c.pat
nodetypes sh: Prefer "" to nullstr where possible. 2015-02-15 21:47:43 +00:00
options.c sh: When setting option via long name, don't go via letter. 2015-08-14 21:44:15 +00:00
options.h sh: Fix compiler warnings related to duplicate or missing declarations. 2015-03-01 21:46:55 +00:00
output.c sh: Make sure output suitable as shell input is also printable. 2014-12-14 16:26:19 +00:00
output.h
parser.c sh: Avoid negative character values from $'\Uffffffff' etc. 2015-08-20 22:05:55 +00:00
parser.h
redir.c
redir.h
sh.1 sh(1): libedit has supported multibyte encodings for a while. 2015-07-11 13:07:26 +00:00
shell.h
show.c
show.h
TOUR
trap.c sh: Fix the trap builtin to be POSIX-compliant for 'trap exit SIG' and 'trap n n...'. 2015-04-18 23:49:57 +00:00
trap.h sh: Move some code from onint() to onsig(), making onint() noreturn. 2014-12-21 23:09:59 +00:00
var.c sh: Fix more compiler warnings related to variable declarations. 2015-03-03 21:21:43 +00:00
var.h sh: Fix more compiler warnings related to variable declarations. 2015-03-03 21:21:43 +00:00