<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/drivers/serial/dev_serial_v2.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_v2.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_v2.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>[fix] components: serial_v2: preserve RT_DEVICE_FLAG_STREAM when reopening serial device</title>
<updated>2026-05-20T02:05:02Z</updated>
<author>
<name>Runcheng Lu</name>
<email>runcheng.lu@hpmicro.com</email>
</author>
<published>2026-04-28T07:36:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=ec9eaadf85dfa60e6327de37bde8c4f04bfbde5d'/>
<id>urn:sha1:ec9eaadf85dfa60e6327de37bde8c4f04bfbde5d</id>
<content type='text'>
- The serial_fops_open function closes and reopens the serial device,but the RT_DEVICE_FLAG_STREAM flag was not preserved across the close/open cycle. This change saves the STREAM flag before close and restores it during reopen to ensure consistent behavior.

Signed-off-by: Runcheng Lu &lt;runcheng.lu@hpmicro.com&gt;
</content>
</entry>
<entry>
<title>style: format code with clang-format [skip ci]</title>
<updated>2026-05-19T05:12:21Z</updated>
<author>
<name>kaidegit</name>
<email>kaidegit+github[bot]@noreply.github.com</email>
</author>
<published>2026-05-17T03:00:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=c96fc44ba3d2f2b1ed1f8f6ac4e4887cbefdd641'/>
<id>urn:sha1:c96fc44ba3d2f2b1ed1f8f6ac4e4887cbefdd641</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[drivers][serial/v2] fix missing break after -RT_EPERM when buf size is 0</title>
<updated>2026-05-19T05:12:21Z</updated>
<author>
<name>kaidegit</name>
<email>2857693944@qq.com</email>
</author>
<published>2026-05-17T02:52:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=b57c80f06f640f951682cd29ed79910fe7f5f789'/>
<id>urn:sha1:b57c80f06f640f951682cd29ed79910fe7f5f789</id>
<content type='text'>
When rx_bufsz or tx_bufsz is 0, the driver returns -RT_EPERM but falls
through to RT_ASSERT(rx_fifo/tx_fifo != RT_NULL). Since serial_rx/serial_tx
is NULL in non-buffered mode, this triggers an assertion failure.

Add break after setting ret = -RT_EPERM in the four affected cases:
- RT_SERIAL_CTRL_SET_RX_TIMEOUT
- RT_SERIAL_CTRL_SET_TX_TIMEOUT
- RT_SERIAL_CTRL_GET_RX_TIMEOUT
- RT_SERIAL_CTRL_GET_TX_TIMEOUT
</content>
</entry>
<entry>
<title>fix(serial): only apply CRLF translation in STREAM mode for poll tx</title>
<updated>2026-02-27T01:54:28Z</updated>
<author>
<name>wdfk-prog</name>
<email>1425075683@qq.com</email>
</author>
<published>2026-02-01T02:48:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=71fd98e56de78b31a58082ce9219f6ea55130ddc'/>
<id>urn:sha1:71fd98e56de78b31a58082ce9219f6ea55130ddc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(drivers/ipc): correct rt_ringbuffer_peek to not consume data</title>
<updated>2026-02-25T09:53:06Z</updated>
<author>
<name>Shaun</name>
<email>rsj@php.vg</email>
</author>
<published>2026-02-22T16:59:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=ffcd1cb3160b18ba789c6ae620b5e1c5d76052bc'/>
<id>urn:sha1:ffcd1cb3160b18ba789c6ae620b5e1c5d76052bc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[serialv2]:Fixed the issue where the serialv2 terminal did not have the enable stream mode</title>
<updated>2025-11-07T01:52:55Z</updated>
<author>
<name>CYFS</name>
<email>2805686936@qq.com</email>
</author>
<published>2025-11-06T09:20:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=934c8195f4f293acded38d3e5b648d65b143afc0'/>
<id>urn:sha1:934c8195f4f293acded38d3e5b648d65b143afc0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat: Initialize local variables to prevent GCC compilation warnings</title>
<updated>2025-09-06T02:51:57Z</updated>
<author>
<name>wdfk-prog</name>
<email>1425075683@qq.com</email>
</author>
<published>2025-09-05T03:45:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=6881f96ea537b8569172c012ab57a82e9f711883'/>
<id>urn:sha1:6881f96ea537b8569172c012ab57a82e9f711883</id>
<content type='text'>
</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>
</feed>
