[PATCH v5 0/2] fix missing '\r' for console

Xiang W wxjstz at 126.com
Mon Feb 27 08:19:04 PST 2023


Changes since v5:
- Add sbi_strnchr as suggested by Anup

Changes since v4:
- nputs_all come back
- implement partial writes as much as possible

Changes since v3:
- Prevent string overflow when looking for \n

Changes since v2:
- Fix the bug reported by Samuel. Prevent p from accessing memory other
  than strings.

Xiang W (2):
  lib: sbi: Add sbi_strnchr implementation
  lib: sbi: fix missing '\r' for console

 include/sbi/sbi_string.h |  2 ++
 lib/sbi/sbi_console.c    | 31 ++++++++++++++++++++++++++++++-
 lib/sbi/sbi_string.c     | 10 ++++++++++
 3 files changed, 42 insertions(+), 1 deletion(-)

-- 
2.39.2




More information about the opensbi mailing list