Skip to content

Fix issues detected by static analyzer

Iker Pedrosa linux-gpio 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied
  2. v14 patches 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4bindings: python: gpiod: avoid use after freebindings/python/gpiod/ext/chip.c+4 -20 replies
2/4lib: line-info strings terminationlib/line-info.c+2 -20 replies
3/4lib: chip-info strings terminationlib/chip-info.c+2 -20 replies
4/4tools: free to avoid leaktools/gpioinfo.c+3 -10 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchKent Gibson
1/4R-b
2/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH libgpiod v2 0/4] Fix issues detected by static analyzer

This patch series contain a set of fixes for several issues detected by a static analyzer tool. They are related to wrong pointers management and string termination.

v2 includes a number of fixes to issues highlighted by Kent Gibson <[email protected]>.

Iker Pedrosa (4):
bindings: python: gpiod: avoid use after free
lib: line-info strings termination
lib: chip-info strings termination
tools: free to avoid leak

 bindings/python/gpiod/ext/chip.c | 6 ++++--
 lib/chip-info.c                  | 4 ++--
 lib/line-info.c                  | 4 ++--
 tools/gpioinfo.c                 | 4 +++-
 4 files changed, 11 insertions(+), 7 deletions(-)
Signature · 1 line
2.45.2