Skip to content

Remove all strcpy() uses

Len Baker dri-devel linux-fbdev linux-staging lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/23 patches 6 repliesIn review
  2. v2 posting 1/21 patch 2 repliesSuperseded
  3. v11 patch 3 repliesSuperseded

Changes in v2 from the cover letter

- Add two new commits to clean the code.
- Use the "%*ph" format specifier instead of strscpy() function (Geert Uytterhoeven)

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3staging/fbtft: Remove all strcpy() usesdrivers/staging/fbtft/fbtft-core.c+6 -114 replies
2/3staging/fbtft: Remove unnecessary variable initializationdrivers/staging/fbtft/fbtft-core.c+1 -10 replies
3/3staging/fbtft: Fix braces coding styledrivers/staging/fbtft/fbtft-core.c+6 -52 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Remove all strcpy() uses

strcpy() performs no bounds checking on the destination buffer. This could result in linear overflows beyond the end of the buffer, leading to all kinds of misbehaviors. So, this serie removes all strcpy uses from the "staging/fbtft" subsystem.

Also, refactor the code a bit to follow the kernel coding-style and avoid unnecessary variable initialization.

Changelog v1 -> v2
- Add two new commits to clean the code.
- Use the "%*ph" format specifier instead of strscpy() function (Geert Uytterhoeven)

Len Baker (3):
staging/fbtft: Remove all strcpy() uses staging/fbtft: Remove unnecessary variable initialization staging/fbtft: Fix braces coding style

 drivers/staging/fbtft/fbtft-core.c | 30 +++++++++++++-----------------
 1 file changed, 13 insertions(+), 17 deletions(-)

--
2.25.1