<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/shell, branch 1_36_0</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=1_36_0</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=1_36_0'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2023-01-03T13:08:18+00:00</updated>
<entry>
<title>hush: code shrink</title>
<updated>2023-01-03T13:08:18+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-01-03T13:08:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=969e00816835769429fcd98046313f66b1c194fb'/>
<id>urn:sha1:969e00816835769429fcd98046313f66b1c194fb</id>
<content type='text'>
function                                             old     new   delta
run_list                                            1032    1012     -20

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: trivial code shrink</title>
<updated>2023-01-03T12:39:14+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-01-03T12:39:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d488a5218b378631ab78c3358dab9498426bc777'/>
<id>urn:sha1:d488a5218b378631ab78c3358dab9498426bc777</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>shell: fix compile failures in some configs</title>
<updated>2023-01-03T07:28:16+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2023-01-03T07:28:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=27be0e8cfeb6f0f7a66bbfb2a6ca23d5a064e6ab'/>
<id>urn:sha1:27be0e8cfeb6f0f7a66bbfb2a6ca23d5a064e6ab</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: optional sleep builtin</title>
<updated>2022-08-27T17:56:21+00:00</updated>
<author>
<name>Shawn Landden</name>
<email>shawnlandden@tutanota.com</email>
</author>
<published>2022-08-27T17:56:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=58598eb7093561d914a6254697e137b815f1fdfc'/>
<id>urn:sha1:58598eb7093561d914a6254697e137b815f1fdfc</id>
<content type='text'>
function                                             old     new   delta
sleepcmd                                               -      10     +10
builtintab                                           352     360      +8
.rodata                                           105264  105271      +7
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 25/0)               Total: 25 bytes

Signed-off-by: Shawn Landden &lt;shawnlandden@tutanota.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: fix use-after-free in bash pattern substitution</title>
<updated>2022-08-02T16:27:41+00:00</updated>
<author>
<name>Sören Tempel</name>
<email>soeren@soeren-tempel.net</email>
</author>
<published>2022-08-02T16:23:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7c2a3bdde0a1316771fdd07ff03413f00383f70e'/>
<id>urn:sha1:7c2a3bdde0a1316771fdd07ff03413f00383f70e</id>
<content type='text'>
function                                             old     new   delta
subevalvar                                          1566    1564      -2

Signed-off-by: Sören Tempel &lt;soeren@soeren-tempel.net&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: fix use-after-free in pattern substituon code</title>
<updated>2022-08-02T10:41:18+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2022-08-02T10:41:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=daa66ed62c79684219088cc0361d5b316d5d1295'/>
<id>urn:sha1:daa66ed62c79684219088cc0361d5b316d5d1295</id>
<content type='text'>
Patch by soeren@soeren-tempel.net

The idx variable points to a value in the stack string (as managed
by STPUTC). STPUTC may resize this stack string via realloc(3). If
this happens, the idx pointer needs to be updated. Otherwise,
dereferencing idx may result in a use-after free.

function                                             old     new   delta
subevalvar                                          1562    1566      +4

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: fix ifs cleanup on error paths</title>
<updated>2022-08-02T09:18:11+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2022-08-02T09:13:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1c5455284234e894dfb6086bf7f3e9a6d5d9611f'/>
<id>urn:sha1:1c5455284234e894dfb6086bf7f3e9a6d5d9611f</id>
<content type='text'>
Patch by Alex Gorinson &lt;algore3698@gmail.com&gt;

function                                             old     new   delta
evalvar                                              477     495     +18
varvalue                                             603     618     +15
subevalvar                                          1557    1572     +15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 48/0)               Total: 48 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash,hush: use HOME for tab completion and prompts</title>
<updated>2022-06-26T16:05:50+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2022-03-24T12:17:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7d1c7d8337853ca99e6ec1150ac4b834cfed5cd3'/>
<id>urn:sha1:7d1c7d8337853ca99e6ec1150ac4b834cfed5cd3</id>
<content type='text'>
ash and hush correctly use the value of HOME for tilde expansion.
However the line editing code in libbb obtains the user's home
directory by calling getpwuid().  Thus tildes in tab completion
and prompts may be interpreted differently than in tilde expansion.

When the line editing code is invoked from a shell make it use the
shell's interpretation of tilde.  This is similar to how GNU readline
and bash collaborate.

function                                             old     new   delta
get_homedir_or_NULL                                   29      72     +43
optschanged                                          119     126      +7
hush_main                                           1204    1211      +7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 57/0)               Total: 57 bytes

v2: Always check for HOME before trying the password database:  this
    is what GNU readline does.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>style fix</title>
<updated>2022-05-01T15:06:00+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2022-05-01T15:06:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9b6f44e0403f9214343bdafd054a628aa1506630'/>
<id>urn:sha1:9b6f44e0403f9214343bdafd054a628aa1506630</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>ash: do not truncate failed tilde expansion on unknown user names</title>
<updated>2022-03-01T09:10:22+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2022-03-01T09:08:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=5fe20cf3212fbada86fb75cf13064caed6a5f3a9'/>
<id>urn:sha1:5fe20cf3212fbada86fb75cf13064caed6a5f3a9</id>
<content type='text'>
Do not skip over "*p = c;" statement.

Testcase: echo ~~nouser/qwe

function                                             old     new   delta
argstr                                              1396    1406     +10

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