<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/scripts/basic, branch master</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=master</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2024-09-28T07:13:32+00:00</updated>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2024-09-28T07:13:32+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2024-09-28T07:13:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=431e2704c17d5c0e51a0cbebfb1105bd4962b3f7'/>
<id>urn:sha1:431e2704c17d5c0e51a0cbebfb1105bd4962b3f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fixdep: add fstat error handling</title>
<updated>2024-09-27T18:03:30+00:00</updated>
<author>
<name>Sam James</name>
<email>sam@gentoo.org</email>
</author>
<published>2024-04-23T20:10:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=480a07bd6828285628abbbe3fe8e5e3b25ce1a92'/>
<id>urn:sha1:480a07bd6828285628abbbe3fe8e5e3b25ce1a92</id>
<content type='text'>
When `fstat` fails, `st` is left uninitialised. In our case, Ben Kohler
noticed our release media builds were failing in Gentoo on x86 when building
busybox with occasional SIGBUS. This turned out to be EOVERFLOW (from 32-bit
ino_t) which wasn't being reported because nothing was checking the return value
from `fstat`.

Fix that to avoid UB (use of uninit var) and to give a more friendly
error to the user.

This actually turns out to be fixed already in the kernel from back in
2010 [0] and 2016 [1].

[0] https://github.com/torvalds/linux/commit/a3ba81131aca243bfecfa78c42edec0cd69f72d6
[1] https://github.com/torvalds/linux/commit/46fe94ad18aa7ce6b3dad8c035fb538942020f2b

Reported-by: Ben Kohler &lt;bkohler@gentoo.org&gt;
Signed-off-by: Sam James &lt;sam@gentoo.org&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2024-06-23T08:44:03+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2024-06-23T08:35:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b07c177b446498ccd739b367f9e80337c3dfa55a'/>
<id>urn:sha1:b07c177b446498ccd739b367f9e80337c3dfa55a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>docproc: avoid segfault during file closing</title>
<updated>2024-04-13T15:57:46+00:00</updated>
<author>
<name>Yan Zhu</name>
<email>zhuyan2015@foxmail.com</email>
</author>
<published>2023-09-11T16:03:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=681e4f5d922b9f0ea968238750d5c5d748eac809'/>
<id>urn:sha1:681e4f5d922b9f0ea968238750d5c5d748eac809</id>
<content type='text'>
In the function find_export_symbols, since the fopen file does not
exit when it fails, there is a dereference problem in fclose(fp),
which will cause a segmentation fault.

Signed-off-by: Yan Zhu &lt;zhuyan2015@foxmail.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2023-04-09T10:24:09+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-04-09T10:24:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d9f2ea8628452f787e02dd0e496af612a2e94578'/>
<id>urn:sha1:d9f2ea8628452f787e02dd0e496af612a2e94578</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fixdep: avoid underflow when end of entry doesn't coincide with EOF</title>
<updated>2023-02-27T12:09:44+00:00</updated>
<author>
<name>Arsen Arsenović</name>
<email>arsen@gentoo.org</email>
</author>
<published>2023-02-21T19:20:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=2d4a3d9e6c1493a9520b907e07a41aca90cdfd94'/>
<id>urn:sha1:2d4a3d9e6c1493a9520b907e07a41aca90cdfd94</id>
<content type='text'>
Bug: https://bugs.gentoo.org/893776
Closes: https://bugs.busybox.net/show_bug.cgi?id=15326
Signed-off-by: Arsen Arsenović &lt;arsen@gentoo.org&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>build system: allow building with w64devkit</title>
<updated>2022-10-30T08:25:45+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2022-10-30T08:25:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7390f29cfc9a3cc0636e20f84f24fbd05f821720'/>
<id>urn:sha1:7390f29cfc9a3cc0636e20f84f24fbd05f821720</id>
<content type='text'>
Make some adjustments to the build system to allow busybox-w32
to be built with w64devkit:

- Strip drive prefix from CURDIR in Makefile to avoid confusing
  make with colons.

- Limit file redirection to a subshell in the usage_compressed and
  embedded_scripts scripts.  Otherwise it isn't possible to move
  the open generated file on Windows.

- Change the option tests in Kbuild.include to allow for /dev/null
  not existing on Windows.

- Create host binaries without a '.exe' extension.  Otherwise they're
  rebuilt more often than necessary.

- Modify split-include.c to allow for Windows' popen() not expanding
  wildcards.

(GitHub issue #239)
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2021-05-14T07:17:12+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-05-14T07:17:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=a3f5a1b7f4275f713acf22f534f95c0da8392e53'/>
<id>urn:sha1:a3f5a1b7f4275f713acf22f534f95c0da8392e53</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix "warning array subscript has type 'char'"</title>
<updated>2021-04-14T17:12:43+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2021-04-14T17:12:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1a45b2ccea94b0fc123798f276a0801413597880'/>
<id>urn:sha1:1a45b2ccea94b0fc123798f276a0801413597880</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>build system: avoid build failure during bisection</title>
<updated>2021-04-13T16:26:46+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-04-03T07:57:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=27c1bc8dfb82f1ccab6bd9b4ce4f54e1fbf7bc3d'/>
<id>urn:sha1:27c1bc8dfb82f1ccab6bd9b4ce4f54e1fbf7bc3d</id>
<content type='text'>
Commit 4bdc914ff (build system: fix compiler warnings) added a
test on the return value of fgets() in split-include.c.

During bisection it's possible to go back to a state where a
configuration value didn't exist.  This results in an empty
include file corresponding to the missing feature.  If a
subsequent bisection returns to a state where the feature exists
split-include treats the empty file as an error and the build
fails.

Add a call to ferror() to distinguish between fgets() failing
due to an error and due to there being no data to read.

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