<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/dfs/dfs_v2/filesystems/devfs/devfs.c, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/components/dfs/dfs_v2/filesystems/devfs/devfs.c?h=master</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/dfs/dfs_v2/filesystems/devfs/devfs.c?h=master'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2025-01-09T11:07:56Z</updated>
<entry>
<title>[components][dfs_v2]: Fix dfs_devfs_open memory leak</title>
<updated>2025-01-09T11:07:56Z</updated>
<author>
<name>wycwyhwyq</name>
<email>5f20.6d9b@gmail.com</email>
</author>
<published>2025-01-09T07:27:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=53bd56ccf9cb77dd1cec3c3c9e1fde24b0a95267'/>
<id>urn:sha1:53bd56ccf9cb77dd1cec3c3c9e1fde24b0a95267</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat: devfs: handling unit size in POSIX RW request</title>
<updated>2024-11-14T03:56:07Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-11-13T09:18:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=e763e51e4985bf6bfca1a18965e604b59fc3b984'/>
<id>urn:sha1:e763e51e4985bf6bfca1a18965e604b59fc3b984</id>
<content type='text'>
POSIX.1 says:
&gt;  read() attempts to read up to count bytes from file descriptor fd
&gt;  into the buffer starting at buf.

On the other hand, for rt_device_read, the `@size` is defined as the
number of unit (block size for blk device, otherwise one byte).

Changes:
- Transferred unit size from POSIX R/W(in bytes) to rt_device_R/W during
  request of file R/W operations.

Signed-off-by: Shell &lt;smokewood@qq.com&gt;
</content>
</entry>
<entry>
<title>fixup: dfs_v2: Correct device mode permissions in devfs</title>
<updated>2024-09-15T17:29:43Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-09-14T08:49:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=d45e13c47193babdc4f3c435279e9077212cf2bb'/>
<id>urn:sha1:d45e13c47193babdc4f3c435279e9077212cf2bb</id>
<content type='text'>
The mode permissions for character, block, and pipe devices were
previously set to 0777, which is overly permissive and not in line
with standard practice. This change reduces the permissions to 0666,
restricting execute permissions while still allowing read/write access.

Changes:
- Adjusted permissions for character/block/pipe devices from 0777 to 0666.

Signed-off-by: Shell &lt;smokewood@qq.com&gt;
</content>
</entry>
<entry>
<title>fix_return_err</title>
<updated>2024-08-24T06:44:39Z</updated>
<author>
<name>zhujiale</name>
<email>945386260@qq.com</email>
</author>
<published>2024-08-21T05:25:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=afa17ed34328ec6587ce10dec223f97f2c2540e6'/>
<id>urn:sha1:afa17ed34328ec6587ce10dec223f97f2c2540e6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[dfsv2] fixup out-of-memory access (#8973)</title>
<updated>2024-05-21T11:45:08Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-05-21T11:45:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=5f947863b4358ba437878747072bc372cb1e855e'/>
<id>urn:sha1:5f947863b4358ba437878747072bc372cb1e855e</id>
<content type='text'>
This change addresses a potential out-of-memory access issue in the
devfs filesystem component. The issue arises when the `rt_malloc`
function allocates memory for a path string without accounting for
the null terminator, leading to undefined behavior.

As the manual documented:

&gt; DESCRIPTION
&gt;   The strlen() function calculates the length of the string pointed to
&gt;   by s, excluding the terminating null byte ('\0').

To fix this, the memory allocation size was increased by one byte
to ensure space for the null terminator. This prevents potential
out-of-memory access and ensures proper string termination.

Signed-off-by: Shell &lt;smokewood@qq.com&gt;</content>
</entry>
<entry>
<title>[components][dfs]remove duplicate lseek in devfs (#8859)</title>
<updated>2024-04-25T10:28:43Z</updated>
<author>
<name>zms123456</name>
<email>85141075+zmshahaha@users.noreply.github.com</email>
</author>
<published>2024-04-25T10:28:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=be97a8ef25a46db542d1b7e9c1af6211723a324f'/>
<id>urn:sha1:be97a8ef25a46db542d1b7e9c1af6211723a324f</id>
<content type='text'>
remove duplicate lseek in devfs</content>
</entry>
<entry>
<title>sync smart &amp; dfs (#8672)</title>
<updated>2024-03-28T15:42:56Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-03-28T15:42:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=83e95bdff4c48c661b50e1eec56d5fd293b28fbb'/>
<id>urn:sha1:83e95bdff4c48c661b50e1eec56d5fd293b28fbb</id>
<content type='text'>
Signed-off-by: xqyjlj &lt;xqyjlj@126.com&gt;
Signed-off-by: Shell &lt;smokewood@qq.com&gt;
Co-authored-by: xqyjlj &lt;xqyjlj@126.com&gt;</content>
</entry>
<entry>
<title>fixup d1s (#8671)</title>
<updated>2024-03-25T12:29:56Z</updated>
<author>
<name>Shell</name>
<email>smokewood@qq.com</email>
</author>
<published>2024-03-25T12:29:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=3237efd0898a2e3a58d7c6da17ae8e1e900bda8f'/>
<id>urn:sha1:3237efd0898a2e3a58d7c6da17ae8e1e900bda8f</id>
<content type='text'>
Signed-off-by: Shell &lt;smokewood@qq.com&gt;</content>
</entry>
<entry>
<title>sync update dfs v2. (#8336)</title>
<updated>2023-12-12T10:05:39Z</updated>
<author>
<name>geniusgogo</name>
<email>2041245+geniusgogo@users.noreply.github.com</email>
</author>
<published>2023-12-12T10:05:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=304ce5919c01bb0a04a7b0b6e0ecb39ed0b13c24'/>
<id>urn:sha1:304ce5919c01bb0a04a7b0b6e0ecb39ed0b13c24</id>
<content type='text'>
</content>
</entry>
<entry>
<title>update dfs (#7887)</title>
<updated>2023-08-02T05:59:43Z</updated>
<author>
<name>geniusgogo</name>
<email>2041245+geniusgogo@users.noreply.github.com</email>
</author>
<published>2023-08-02T05:59:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=69d94315b8453ed1986a8a7a4cbd5835deceb3be'/>
<id>urn:sha1:69d94315b8453ed1986a8a7a4cbd5835deceb3be</id>
<content type='text'>
</content>
</entry>
</feed>
