mbox series

[libgpiod,0/4] Fix issues detected by static analyzer

Message ID cover.1721039339.git.ikerpedrosam@gmail.com
Headers show
Series Fix issues detected by static analyzer | expand

Message

Iker Pedrosa July 17, 2024, 11:36 a.m. UTC
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. 

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                  | 9 ++++++---
 lib/line-info.c                  | 6 ++++--
 tools/gpioinfo.c                 | 4 +++-
 4 files changed, 17 insertions(+), 8 deletions(-)

Comments

Bartosz Golaszewski July 19, 2024, 9:33 a.m. UTC | #1
On Wed, Jul 17, 2024 at 1:37 PM Iker Pedrosa <ikerpedrosam@gmail.com> wrote:
>
> 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.
>

What is the static analyzer you used for this?

Bart

> 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                  | 9 ++++++---
>  lib/line-info.c                  | 6 ++++--
>  tools/gpioinfo.c                 | 4 +++-
>  4 files changed, 17 insertions(+), 8 deletions(-)
>
> --
> 2.45.2
>