<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/drivers/serial/dev_serial.c, branch copilot/bug-security-related-issue</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/components/drivers/serial/dev_serial.c?h=copilot%2Fbug-security-related-issue</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/drivers/serial/dev_serial.c?h=copilot%2Fbug-security-related-issue'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2026-06-09T06:52:56Z</updated>
<entry>
<title>chore: polish serial ioctl buffer naming</title>
<updated>2026-06-09T06:52:56Z</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2026-06-09T06:52:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=b85f8639f6ce56da9847f84e70db8bb150fe48e4'/>
<id>urn:sha1:b85f8639f6ce56da9847f84e70db8bb150fe48e4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: harden serial ioctl user-pointer handling</title>
<updated>2026-06-09T06:51:53Z</updated>
<author>
<name>copilot-swe-agent[bot]</name>
<email>198982749+Copilot@users.noreply.github.com</email>
</author>
<published>2026-06-09T06:51:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=29cb089c45b5fd2c65c668242ba2855035cd8509'/>
<id>urn:sha1:29cb089c45b5fd2c65c668242ba2855035cd8509</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[dm][pinctrl] Set pinctrl default auto in platform bus. (#11052)</title>
<updated>2025-12-13T08:33:05Z</updated>
<author>
<name>GUI</name>
<email>39894654+GuEe-GUI@users.noreply.github.com</email>
</author>
<published>2025-12-13T08:33:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=1b4111a99e63cc731a51da9459e24b02692aa768'/>
<id>urn:sha1:1b4111a99e63cc731a51da9459e24b02692aa768</id>
<content type='text'>
Signed-off-by: GuEe-GUI &lt;2991707448@qq.com&gt;</content>
</entry>
<entry>
<title>fix(ioctl): _IOR() overflows in switch (int) #10650</title>
<updated>2025-09-01T04:46:43Z</updated>
<author>
<name>Tang Haojin</name>
<email>tanghaojin@outlook.com</email>
</author>
<published>2025-09-01T04:46:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=728d9e491967d3691fda0d0a20dec3ac418bdc68'/>
<id>urn:sha1:728d9e491967d3691fda0d0a20dec3ac418bdc68</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[driver][serial] V1]: fix correct data loss logic when RX ring buffer is full</title>
<updated>2025-08-10T04:10:16Z</updated>
<author>
<name>wdfk-prog</name>
<email>1425075683@qq.com</email>
</author>
<published>2025-08-09T01:48:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=302370720e3d41355158378e27b137fc21c0a5ab'/>
<id>urn:sha1:302370720e3d41355158378e27b137fc21c0a5ab</id>
<content type='text'>
In the serial ISR (`rt_hw_serial_isr`), the previous logic for handling a full RX FIFO was flawed. When the buffer was filled, it would increment `get_index` (`get_index += 1`).

This had two negative consequences:
1.  It effectively discarded the oldest byte of data prematurely.
2.  It reduced the usable capacity of a buffer of size N to N-1. For example, a 64-byte buffer could only ever hold 63 readable bytes after becoming full.

This patch corrects the behavior by implementing a standard overwriting ring buffer strategy. When the buffer is full, the logic is changed to `get_index = put_index`.

This ensures that:
- When new data arrives, it correctly overwrites the oldest data.
- The `get_index` is advanced along with the `put_index`, correctly marking the new start of the buffer.
- The full N-byte capacity of the buffer is utilized, always storing the N most recent bytes.

This change resolves the unexpected data loss and makes the buffer behavior correct and predictable.
</content>
</entry>
<entry>
<title>[serial] add bypass testcase in utest</title>
<updated>2024-12-17T03:08:14Z</updated>
<author>
<name>zhujiale</name>
<email>945386260@qq.com</email>
</author>
<published>2024-11-27T06:48:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=e4760364f18a784257ad422b913997752d15e93b'/>
<id>urn:sha1:e4760364f18a784257ad422b913997752d15e93b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[serial] add bypass hook to direct processing char when uart irq coming</title>
<updated>2024-12-17T03:08:14Z</updated>
<author>
<name>zhujiale</name>
<email>945386260@qq.com</email>
</author>
<published>2024-11-20T02:04:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=27cf024585bee854eb032b4240f1a2390a3c29d7'/>
<id>urn:sha1:27cf024585bee854eb032b4240f1a2390a3c29d7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[drivers] Specifies the name of the drivers driver file</title>
<updated>2024-09-13T21:40:40Z</updated>
<author>
<name>CXSforHPU</name>
<email>156403074+CXSforHPU@users.noreply.github.com</email>
</author>
<published>2024-09-13T21:40:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=bb91502465da8432b5b38a0eb12be3af8238c22d'/>
<id>urn:sha1:bb91502465da8432b5b38a0eb12be3af8238c22d</id>
<content type='text'>
https://github.com/RT-Thread/rt-thread/pull/9420</content>
</entry>
</feed>
