<feed xmlns='http://www.w3.org/2005/Atom'>
<title>hardinfo2.git/hardinfo/storage_util.c, branch upstream</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>https://git.gnuabordo.com.br/debian/hardinfo2.git/atom?h=upstream</id>
<link rel='self' href='https://git.gnuabordo.com.br/debian/hardinfo2.git/atom?h=upstream'/>
<link rel='alternate' type='text/html' href='https://git.gnuabordo.com.br/debian/hardinfo2.git/'/>
<updated>2024-02-08T18:52:52+00:00</updated>
<entry>
<title>Clean - HARDINFO2 BASE</title>
<updated>2024-02-08T18:52:52+00:00</updated>
<author>
<name>bigbear</name>
<email>ns@bigbear.dk</email>
</author>
<published>2024-02-08T18:52:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnuabordo.com.br/debian/hardinfo2.git/commit/?id=9a05f56e1bf36abab41d12f92f2c75266c44bd4a'/>
<id>urn:sha1:9a05f56e1bf36abab41d12f92f2c75266c44bd4a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Here is the environment cinfiguration: cpu - atom, sd card as bootable disk, loist of devices:</title>
<updated>2023-10-13T19:28:28+00:00</updated>
<author>
<name>Alexey Berezhok</name>
<email>bayrepo.info@gmail.com</email>
</author>
<published>2023-10-13T18:40:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnuabordo.com.br/debian/hardinfo2.git/commit/?id=01c8928ef55bc2f11bb76401f89c34e0539e6879'/>
<id>urn:sha1:01c8928ef55bc2f11bb76401f89c34e0539e6879</id>
<content type='text'>
/sys/block/zram0
/sys/block/mmcblk0boot0
/sys/block/mmcblk0boot1
/sys/block/mmcblk2
/sys/block/mmcblk0

Hardinfo got nex pathes for reading for the report:

1) # cat /sys/block/mmcblk0/device/oemid
0x0103
2) # cat /sys/block/mmcblk2/device/oemid
0x534d
3) # cat /sys/block/mmcblk0boot0/device/oemid
cat: /sys/block/mmcblk0boot0/device/oemid: No such file or directory
4) # cat /sys/block/mmcblk0boot1/device/oemid
cat: /sys/block/mmcblk0boot1/device/oemid: No such file or directory

In the code no checks if files from previous step for device was read and pointer not NULL:

gchar *oemid_path = g_strdup_printf("/sys/block/%s/device/oemid", e-&gt;d-&gt;block_dev);
gchar *manfid_path = g_strdup_printf("/sys/block/%s/device/manfid", e-&gt;d-&gt;block_dev);
gchar *oemid = NULL, *manfid = NULL;
g_file_get_contents(oemid_path, &amp;oemid, NULL, NULL);
g_file_get_contents(manfid_path, &amp;manfid, NULL, NULL);

unsigned int id = strtol(oemid, NULL, 16);
...
id = strtol(manfid, NULL, 16);

Before srttol need check for NULL
</content>
</entry>
<entry>
<title>devices/storage - added WWN/EUI Identifier and IEEE OUI</title>
<updated>2021-10-19T17:31:50+00:00</updated>
<author>
<name>Ondrej Čerman</name>
<email>ondrej.cerman@gmail.com</email>
</author>
<published>2021-10-16T21:37:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnuabordo.com.br/debian/hardinfo2.git/commit/?id=0444fa61fa43112c8a3d1025223ea1821ed21d97'/>
<id>urn:sha1:0444fa61fa43112c8a3d1025223ea1821ed21d97</id>
<content type='text'>
</content>
</entry>
<entry>
<title>devices/storage - refactoring - all code that is extending udisks2 information has been moved to separate file.</title>
<updated>2021-10-17T20:26:13+00:00</updated>
<author>
<name>Ondrej Čerman</name>
<email>ondrej.cerman@gmail.com</email>
</author>
<published>2021-10-16T20:30:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnuabordo.com.br/debian/hardinfo2.git/commit/?id=e941b2ada4ef3cad921d0fe87dcc75baf2cdcb73'/>
<id>urn:sha1:e941b2ada4ef3cad921d0fe87dcc75baf2cdcb73</id>
<content type='text'>
</content>
</entry>
</feed>
