diff options
| author | Anton Moryakov <[email protected]> | 2025-02-07 01:01:23 +0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-02-11 08:17:23 -0600 |
| commit | b4df7003dfd06da630c248c958993a686fb1619b (patch) | |
| tree | e138100fc9bd9b63bcaae69140443d2d8b0e84c2 /include | |
| parent | bdf056441de30e639d2bc80c32027de3bf28ac4a (diff) | |
common: Add NULL checks for xrealloc in make_string cli_hush.c
- 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 <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
