staging: fbtft: Fix buffer overflow vulnerability
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 1 replyIn review
- v11 patch 1 replySuperseded
Changes in v2 from the cover letter
- Replace magic number
- Check return value of call to strlcpy()
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | staging: fbtft: Fix buffer overflow vulnerabilitydrivers/ | +1 | 0 replies | |
| 2/3 | staging: fbtft: Replace magic number with constantdrivers/ | +1 | 1 reply | |
| 3/3 | staging: fbtft: Add check on strlcpy() return valuedrivers/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/3] staging: fbtft: Fix buffer overflow vulnerability
Module copies a user supplied string (module parameter) into a buffer using strncpy() and does not check that the buffer is null terminated.
Replace call to strncpy() with call to strlcpy() ensuring that the buffer is null terminated.
Replace magic number with pre-existing compile time constant.
Check return value of call to strlcpy() and throw warning if source string is truncated.
v1 was a single patch. v2 adds 2 extra patches while retaining the original v1 patch as the first of the series.
v2:
- Replace magic number
- Check return value of call to strlcpy()
Tobin C. Harding (3):
staging: fbtft: Fix buffer overflow vulnerability
staging: fbtft: Replace magic number with constant
staging: fbtft: Add check on strlcpy() return value
drivers/staging/fbtft/fbtft_device.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
Signature · 1 line
2.7.4