<feed xmlns='http://www.w3.org/2005/Atom'>
<title>procd/utils, branch master</title>
<subtitle>OpenWrt service / process manager</subtitle>
<id>https://git.openwrt.org/project/procd/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/procd/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/procd/'/>
<updated>2024-12-11T11:09:18Z</updated>
<entry>
<title>inittab: Disable implicit controlling TTY.</title>
<updated>2024-12-11T11:09:18Z</updated>
<author>
<name>Markus Gothe</name>
</author>
<published>2024-10-07T11:30:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/procd/commit/?id=30542c94c4255acfaffa8e20b88783b01fa00c4a'/>
<id>urn:sha1:30542c94c4255acfaffa8e20b88783b01fa00c4a</id>
<content type='text'>
Disable the use of implicit controlling
TTYs. They will be enabled on demand.

This fixes a bug where 2 or more
consecutive Ctrl-C at the login prompt
triggers a reboot of the device.

Closes: https://github.com/openwrt/openwrt/issues/11306

Signed-off-by: Markus Gothe &lt;markus.gothe@genexis.eu&gt;
</content>
</entry>
<entry>
<title>utils: use strlcpy when appropriate</title>
<updated>2024-07-07T17:00:35Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2024-07-07T16:54:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/procd/commit/?id=f230c11771875adc1f74bef013e8cea1fa1867bc'/>
<id>urn:sha1:f230c11771875adc1f74bef013e8cea1fa1867bc</id>
<content type='text'>
For util functions called with a buffer and length parameter we should
use strlcpy() instead of strncpy(), as those functions are called with
sizeof(buffer) as parameter.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>utils: get_cmdline_val: add missing error check</title>
<updated>2024-07-01T17:13:59Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2024-03-30T13:07:29Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/procd/commit/?id=1e411a58f52ea49e5cb4ef4a067ecdab8befd55c'/>
<id>urn:sha1:1e411a58f52ea49e5cb4ef4a067ecdab8befd55c</id>
<content type='text'>
Add check to prevent read() in case open() has failed.

Coverity CID: 1595922: Error handling issues  (NEGATIVE_RETURNS)
Fixes: 6f52ef3 ("get_cmdline_val: search for entire name, not just suffix")
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>utils: add key-value offset support to get_cmdline_val()</title>
<updated>2024-03-25T09:28:50Z</updated>
<author>
<name>INAGAKI Hiroshi</name>
</author>
<published>2024-03-12T04:05:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/procd/commit/?id=49ea930a862c8eeb4996170b34a930f5848895e9'/>
<id>urn:sha1:49ea930a862c8eeb4996170b34a930f5848895e9</id>
<content type='text'>
Add offset support of key-value pairs to get_cmdline_val() for getting
multiple values of the same keys.

Signed-off-by: INAGAKI Hiroshi &lt;musashino.open@gmail.com&gt;
</content>
</entry>
<entry>
<title>utils: don't ignore open() return value</title>
<updated>2021-08-30T23:46:49Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-08-30T23:35:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/procd/commit/?id=86f82f3de1da07ef86a33a8e9302c98dafbfa6ec'/>
<id>urn:sha1:86f82f3de1da07ef86a33a8e9302c98dafbfa6ec</id>
<content type='text'>
In case active console cannot be opened, return NULL early instead
of trying to read from errornous file descriptor.

Coverity CID: 1490087 Argument cannot be negative
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>utils: make sure read() string is 0 terminated</title>
<updated>2021-08-24T17:31:46Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-08-23T17:01:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/procd/commit/?id=6010bd3e126717ef8e16a83d5b489aea42de889d'/>
<id>urn:sha1:6010bd3e126717ef8e16a83d5b489aea42de889d</id>
<content type='text'>
Coverity CID: 1490062 String not null terminated

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>inittab: detect active console from kernel if no console= specified</title>
<updated>2021-03-07T23:46:27Z</updated>
<author>
<name>Mathew McBride</name>
</author>
<published>2021-03-05T00:54:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/procd/commit/?id=2cfc26f8456a4d5ba3836c914a742f3d00bad781'/>
<id>urn:sha1:2cfc26f8456a4d5ba3836c914a742f3d00bad781</id>
<content type='text'>
The default serial console can be set in the device tree
using the linux,stdout-path parameter (or equivalent from ACPI).

This is important for universal booting (EFI/EBBR) on ARM platforms
where the default console can be different (e.g ttyS0 vs ttyAMA0).

Signed-off-by: Mathew McBride &lt;matt@traverse.com.au&gt;
</content>
</entry>
<entry>
<title>utils: fix C style in header file</title>
<updated>2021-03-07T23:45:33Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-03-07T23:45:33Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/procd/commit/?id=945d0d79cbef1f0dd9958f409548d48ce783d933'/>
<id>urn:sha1:945d0d79cbef1f0dd9958f409548d48ce783d933</id>
<content type='text'>
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>procd: check strchr() result before using it</title>
<updated>2019-07-13T07:22:52Z</updated>
<author>
<name>Justinas Grauslis</name>
</author>
<published>2019-07-08T08:01:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/procd/commit/?id=31f0765afd61f55b1dd2cdb62ec1968efca19690'/>
<id>urn:sha1:31f0765afd61f55b1dd2cdb62ec1968efca19690</id>
<content type='text'>
Subtracting some address from NULL does not necessary
results in negative value. It's lower level dependent.

In our case (IPQ4019 + Yocto + meta-openwrt) subtracting
token address from NULL strchr() return value results in
large positive number which causes out-of-boundary memory
access and eventually a segfault.

Signed-off-by: Justinas Grauslis &lt;justinas@8devices.com&gt;
</content>
</entry>
<entry>
<title>procd: Remove redundant errno variable in several printf functions.</title>
<updated>2018-01-02T12:01:31Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2017-12-25T22:14:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/procd/commit/?id=810d7a51c584673f3511f1fa2eb447c67fd7f88e'/>
<id>urn:sha1:810d7a51c584673f3511f1fa2eb447c67fd7f88e</id>
<content type='text'>
%m, aka strerror(errno) is already used. No need to repeat it. Saves 280 bytes.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
</feed>
