<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/testsuite, branch 1_31_0</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=1_31_0</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=1_31_0'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2019-06-08T11:04:44+00:00</updated>
<entry>
<title>expand,unexpand: drop broken test, add FIXME comment</title>
<updated>2019-06-08T11:04:44+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2019-06-08T11:04:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=92549250f36f91f4492c296bb227cfca83d5c4fe'/>
<id>urn:sha1:92549250f36f91f4492c296bb227cfca83d5c4fe</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>awk: fix testsuite</title>
<updated>2019-06-08T11:00:46+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2019-06-08T11:00:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=22cc92833f98450f37a2e82e4a6a36c418b4cc67'/>
<id>urn:sha1:22cc92833f98450f37a2e82e4a6a36c418b4cc67</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>testsuite: fix bunzip2.tests expectations</title>
<updated>2019-05-26T11:51:41+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2019-05-26T11:51:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b2c123d484dbe261758f27ced213f4649173803b'/>
<id>urn:sha1:b2c123d484dbe261758f27ced213f4649173803b</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>sed: fix /regex/,+N match triggering only once, closes 11871</title>
<updated>2019-05-13T14:30:39+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2019-05-13T14:29:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0545bfa841540a0d7d7e2953bc205eda64144c2e'/>
<id>urn:sha1:0545bfa841540a0d7d7e2953bc205eda64144c2e</id>
<content type='text'>
function                                             old     new   delta
process_files                                       2235    2246     +11

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>dc.tests: fix two test case to also depend on DC_BIG</title>
<updated>2019-04-19T10:30:11+00:00</updated>
<author>
<name>Chen Qi</name>
<email>Qi.Chen@windriver.com</email>
</author>
<published>2019-04-17T01:39:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=32c8ce4def177a98a9aef0896bdb2d8262b364ec'/>
<id>urn:sha1:32c8ce4def177a98a9aef0896bdb2d8262b364ec</id>
<content type='text'>
Signed-off-by: Chen Qi &lt;Qi.Chen@windriver.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>grep: fix -x -v with certain pattern orders</title>
<updated>2019-01-29T13:42:57+00:00</updated>
<author>
<name>Ari Sundholm</name>
<email>ari@tuxera.com</email>
</author>
<published>2019-01-29T13:42:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9a9c6e39ba4c8f4f2cecb147c7e6464bec2d8b55'/>
<id>urn:sha1:9a9c6e39ba4c8f4f2cecb147c7e6464bec2d8b55</id>
<content type='text'>
We found out that busybox -x -v is a bit broken:

ari@ari-thinkpad:~/busybox$ echo '  aa bb cc' | ./busybox grep -x -e 'aa.*' -e '.*bb.*'
  aa bb cc
ari@ari-thinkpad:~/busybox$ echo '  aa bb cc' | ./busybox grep -x -v -e 'aa.*' -e '.*bb.*'
ari@ari-thinkpad:~/busybox$ echo '  aa bb cc' | ./busybox grep -x -e '.*aa.*' -e 'bb.*'
  aa bb cc
ari@ari-thinkpad:~/busybox$ echo '  aa bb cc' | ./busybox grep -x -v -e '.*aa.*' -e 'bb.*'
  aa bb cc

Last one is wrong.

This patch fixes the issue by making sure that the variable 'found'
never makes a transition from 1 to 0, as this would mean that
grep previously found a match on this input line.

Signed-off-by: Ari Sundholm &lt;ari@tuxera.com&gt;
Signed-off-by: Niko Vähäsarja &lt;niko@tuxera.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>bc: implement pass-by-reference code from upstream</title>
<updated>2019-01-25T15:22:15+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2019-01-25T13:24:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=53799506acf69e7f7137d91fa5a4451211621469'/>
<id>urn:sha1:53799506acf69e7f7137d91fa5a4451211621469</id>
<content type='text'>
function                                             old     new   delta
zxc_program_popResultAndCopyToVar                    298     493    +195
bc_vec_pushIndex                                       -      75     +75
zxc_vm_process                                       859     928     +69
xc_program_dereference                                 -      66     +66
bc_vec_npush                                           -      65     +65
zbc_num_s                                            239     249     +10
zxc_program_num                                     1024    1032      +8
zbc_num_divmod                                       150     156      +6
xc_program_search                                    143     146      +3
zxc_program_assign                                   392     389      -3
zdc_program_execStr                                  520     517      -3
xc_program_pushVar                                   198     195      -3
zxc_program_exec                                    4101    4092      -9
zbc_program_call                                     318     308     -10
zbc_func_insert                                      120     104     -16
zbc_parse_stmt_possibly_auto                        1460    1439     -21
bc_vec_push                                           53      12     -41
xc_parse_pushIndex                                    61      18     -43
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 6/9 up/down: 497/-149)          Total: 348 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>awk: Fix overly permissive func arg list parsing</title>
<updated>2019-01-21T11:59:19+00:00</updated>
<author>
<name>Brian Foley</name>
<email>bpfoley@google.com</email>
</author>
<published>2019-01-07T02:32:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1c42c18e9601ee1416d61663f5a91874954c524d'/>
<id>urn:sha1:1c42c18e9601ee1416d61663f5a91874954c524d</id>
<content type='text'>
It allows things like 'func f(a b)' and 'func f(a,)' which GNU awk forbids.

function                                             old     new   delta
parse_program                                        327     367     +40
chain_expr                                            40      67     +27
parse_expr                                           891     915     +24
EMSG_TOO_FEW_ARGS                                     30      18     -12
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/1 up/down: 91/-12)             Total: 79 bytes

Signed-off-by: Brian Foley &lt;bpfoley@google.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>awk: Syntax error if delete isn't given an arg.</title>
<updated>2019-01-21T11:55:49+00:00</updated>
<author>
<name>Brian Foley</name>
<email>bpfoley@google.com</email>
</author>
<published>2019-01-01T21:40:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=08a514c097f1451678940a3178a9565b9d65a193'/>
<id>urn:sha1:08a514c097f1451678940a3178a9565b9d65a193</id>
<content type='text'>
Unlike exit and return, delete strictly requires an arg, and derefs a
null pointer if executed without one.

Signed-off-by: Brian Foley &lt;bpfoley@google.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>awk: Guard pointer chasing when parsing ternary expressions.</title>
<updated>2019-01-21T11:55:49+00:00</updated>
<author>
<name>Brian Foley</name>
<email>bpfoley@google.com</email>
</author>
<published>2019-01-01T21:40:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=dac15a10accc6921d1559d254ceed9fe9d092ddf'/>
<id>urn:sha1:dac15a10accc6921d1559d254ceed9fe9d092ddf</id>
<content type='text'>
Avoids an uninit pointer deref for some malformed ternary exprs.

Add a test that would crash in busybox before this fix.

Signed-off-by: Brian Foley &lt;bpfoley@google.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
