Compare commits
5
Commits
1_33_1
...
1_33_stable
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db726ae0c6 | ||
|
|
bb61205290 | ||
|
|
56a335378a | ||
|
|
5b939a6d29 | ||
|
|
d326be2850 |
No files matched your search
@@ -1,6 +1,6 @@
|
||||
VERSION = 1
|
||||
PATCHLEVEL = 33
|
||||
SUBLEVEL = 1
|
||||
SUBLEVEL = 2
|
||||
EXTRAVERSION =
|
||||
NAME = Unnamed
|
||||
|
||||
|
||||
@@ -290,8 +290,11 @@ unpack_lzma_stream(transformer_state_t *xstate)
|
||||
uint32_t pos;
|
||||
|
||||
pos = buffer_pos - rep0;
|
||||
if ((int32_t)pos < 0)
|
||||
if ((int32_t)pos < 0) {
|
||||
pos += header.dict_size;
|
||||
if ((int32_t)pos < 0)
|
||||
goto bad;
|
||||
}
|
||||
match_byte = buffer[pos];
|
||||
do {
|
||||
int bit;
|
||||
|
||||
+3
-6
@@ -12635,7 +12635,7 @@ parsesub: {
|
||||
do {
|
||||
STPUTC(c, out);
|
||||
c = pgetc_eatbnl();
|
||||
} while (!subtype && isdigit(c));
|
||||
} while ((subtype == 0 || subtype == VSLENGTH) && isdigit(c));
|
||||
} else if (c != '}') {
|
||||
/* $[{[#]]<specialchar>[}] */
|
||||
int cc = c;
|
||||
@@ -12665,11 +12665,6 @@ parsesub: {
|
||||
} else
|
||||
goto badsub;
|
||||
|
||||
if (c != '}' && subtype == VSLENGTH) {
|
||||
/* ${#VAR didn't end with } */
|
||||
goto badsub;
|
||||
}
|
||||
|
||||
if (subtype == 0) {
|
||||
static const char types[] ALIGN1 = "}-+?=";
|
||||
/* ${VAR...} but not $VAR or ${#VAR} */
|
||||
@@ -12726,6 +12721,8 @@ parsesub: {
|
||||
#endif
|
||||
}
|
||||
} else {
|
||||
if (subtype == VSLENGTH && c != '}')
|
||||
subtype = 0;
|
||||
badsub:
|
||||
pungetc();
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
SHELL: line 1: : not found
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
# (set argv0 to "SHELL" to avoid "/path/to/shell: blah" in error messages)
|
||||
$THIS_SH -c '\' SHELL
|
||||
@@ -0,0 +1 @@
|
||||
SHELL: line 1: -: not found
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
# (set argv0 to "SHELL" to avoid "/path/to/shell: blah" in error messages)
|
||||
$THIS_SH -c '"-"' SHELL
|
||||
+16
-1
@@ -3694,9 +3694,10 @@ static void debug_print_tree(struct pipe *pi, int lvl)
|
||||
|
||||
pin = 0;
|
||||
while (pi) {
|
||||
fdprintf(2, "%*spipe %d %sres_word=%s followup=%d %s\n",
|
||||
fdprintf(2, "%*spipe %d #cmds:%d %sres_word=%s followup=%d %s\n",
|
||||
lvl*2, "",
|
||||
pin,
|
||||
pi->num_cmds,
|
||||
(IF_HAS_KEYWORDS(pi->pi_inverted ? "! " :) ""),
|
||||
RES[pi->res_word],
|
||||
pi->followup, PIPE[pi->followup]
|
||||
@@ -3839,6 +3840,9 @@ static void done_pipe(struct parse_context *ctx, pipe_style type)
|
||||
#endif
|
||||
/* Replace all pipes in ctx with one newly created */
|
||||
ctx->list_head = ctx->pipe = pi;
|
||||
/* for cases like "cmd && &", do not be tricked by last command
|
||||
* being null - the entire {...} & is NOT null! */
|
||||
not_null = 1;
|
||||
} else {
|
||||
no_conv:
|
||||
ctx->pipe->followup = type;
|
||||
@@ -5235,6 +5239,11 @@ static int encode_string(o_string *as_string,
|
||||
}
|
||||
#endif
|
||||
o_addQchr(dest, ch);
|
||||
if (ch == SPECIAL_VAR_SYMBOL) {
|
||||
/* Convert "^C" to corresponding special variable reference */
|
||||
o_addchr(dest, SPECIAL_VAR_QUOTED_SVS);
|
||||
o_addchr(dest, SPECIAL_VAR_SYMBOL);
|
||||
}
|
||||
goto again;
|
||||
#undef as_string
|
||||
}
|
||||
@@ -5346,6 +5355,11 @@ static struct pipe *parse_stream(char **pstring,
|
||||
if (ch == '\n')
|
||||
continue; /* drop \<newline>, get next char */
|
||||
nommu_addchr(&ctx.as_string, '\\');
|
||||
if (ch == SPECIAL_VAR_SYMBOL) {
|
||||
nommu_addchr(&ctx.as_string, ch);
|
||||
/* Convert \^C to corresponding special variable reference */
|
||||
goto case_SPECIAL_VAR_SYMBOL;
|
||||
}
|
||||
o_addchr(&ctx.word, '\\');
|
||||
if (ch == EOF) {
|
||||
/* Testcase: eval 'echo Ok\' */
|
||||
@@ -5670,6 +5684,7 @@ static struct pipe *parse_stream(char **pstring,
|
||||
/* Note: nommu_addchr(&ctx.as_string, ch) is already done */
|
||||
|
||||
switch (ch) {
|
||||
case_SPECIAL_VAR_SYMBOL:
|
||||
case SPECIAL_VAR_SYMBOL:
|
||||
/* Convert raw ^C to corresponding special variable reference */
|
||||
o_addchr(&ctx.word, SPECIAL_VAR_SYMBOL);
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
hush: can't execute '': No such file or directory
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# (set argv0 to "SHELL" to avoid "/path/to/shell: blah" in error messages)
|
||||
$THIS_SH -c '\' SHELL
|
||||
@@ -0,0 +1 @@
|
||||
hush: can't execute '-': No such file or directory
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
# (set argv0 to "SHELL" to avoid "/path/to/shell: blah" in error messages)
|
||||
$THIS_SH -c '"-"' SHELL
|
||||
+13
-4
@@ -8,14 +8,23 @@
|
||||
|
||||
# Damaged encrypted streams
|
||||
testing "unlzma (bad archive 1)" \
|
||||
"unlzma <unlzma_issue_1.lzma >/dev/null; echo \$?" \
|
||||
"1
|
||||
"unlzma <unlzma_issue_1.lzma 2>&1 >/dev/null; echo \$?" \
|
||||
"unlzma: corrupted data
|
||||
1
|
||||
" "" ""
|
||||
|
||||
# Damaged encrypted streams
|
||||
testing "unlzma (bad archive 2)" \
|
||||
"unlzma <unlzma_issue_2.lzma >/dev/null; echo \$?" \
|
||||
"1
|
||||
"unlzma <unlzma_issue_2.lzma 2>&1 >/dev/null; echo \$?" \
|
||||
"unlzma: corrupted data
|
||||
1
|
||||
" "" ""
|
||||
|
||||
# Damaged encrypted streams
|
||||
testing "unlzma (bad archive 3)" \
|
||||
"unlzma <unlzma_issue_3.lzma 2>&1 >/dev/null; echo \$?" \
|
||||
"unlzma: corrupted data
|
||||
1
|
||||
" "" ""
|
||||
|
||||
exit $FAILCOUNT
|
||||
Binary file not shown.
Reference in new issue
Block a user