mirror of
https://github.com/apache/nuttx.git
synced 2026-05-14 19:38:39 +08:00
c178fa3260
If the gulp size in the stdio buffer the remaining user buffer size it will: - Corrupt memory in dest (user memory) and - Keep corrupting KERNEL memory via the stdio character buffer until the whole system crashes, as the 'remaining' count underflows This patch fixes this behavior.