On Fri, 07 Feb 2025 01:01:23 +0300, Anton Moryakov wrote:
> - Check return value of xrealloc for NULL.
> - Free allocated memory and return NULL if xrealloc fails.
> - Prevent NULL pointer dereference in strlen and strcat.
>
> Triggers found by static analyzer Svace.
>
>
> [...]
Applied to u-b
- Check return value of xrealloc for NULL.
- Free allocated memory and return NULL if xrealloc fails.
- Prevent NULL pointer dereference in strlen and strcat.
Triggers found by static analyzer Svace.
Signed-off-by: Anton Moryakov
---
common/cli_hush.c | 8 +++-
1 file changed, 7 insertions
2 matches
Mail list logo