string: strl(cat|cpy)
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest5 patches 0 repliesNew
Changes in v2 from the cover letter
- Fix strlcpy return value
- Add implementation of strlcat
- Add test for strlcat
- Fix bug in fastboot
- Move check to u_boot_line
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | lib: string: Fix strlcpy return valuelib/ | +8 | 2 replies | |
| 1/5 | lib: string: Fix strlcpy return value | +0 | 0 replies | |
| 1/5 | lib: string: Fix strlcpy return value | +0 | 1 reply | |
| 2/5 | lib: string: Implement strlcatdrivers/ include/ lib/ | +22 | 2 replies | |
| 3/5 | test: Add test for strlcattest/ test/ | +127 | 2 replies | |
| 4/5 | fastboot: Fix possible buffer overrundrivers/ | +3 | 1 reply | |
| 5/5 | checkpatch: Add warnings for using strn(cat|cpy)scripts/ tools/ | +19 | 2 replies |
Reviews trailers per patch
3 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Simon Glass |
|---|---|
| 1/5 | |
| 1/5 | |
| 1/5 | |
| 2/5 | R-b |
| 3/5 | R-b |
| 4/5 | |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/5] string: strl(cat|cpy)
This series adds support for strl(cat|cpy), and brings their implementations in-line with what is documented in the Linux man pages. It also fixes some potential (actual) fastboot bugs. Lastly, it adds a patman check to suggest using these functions over strn(cat|cpy). I think these functions provide a much better interface, which removes some footguns from U-Boot.
Changes in v2:
- Fix strlcpy return value
- Add implementation of strlcat
- Add test for strlcat
- Fix bug in fastboot
- Move check to u_boot_line
Sean Anderson (5):
lib: string: Fix strlcpy return value
lib: string: Implement strlcat
test: Add test for strlcat
fastboot: Fix possible buffer overrun
checkpatch: Add warnings for using strn(cat|cpy)
drivers/fastboot/fb_mmc.c | 6 +- drivers/usb/dwc3/linux-compat.h | 6 -- include/linux/string.h | 3 + lib/string.c | 31 +++++++- scripts/checkpatch.pl | 6 ++ test/lib/Makefile | 1 + test/lib/strlcat.c | 126 ++++++++++++++++++++++++++++++++ tools/patman/test_checkpatch.py | 14 +++- 8 files changed, 179 insertions(+), 14 deletions(-) create mode 100644 test/lib/strlcat.c
Signature · 1 line
2.30.1