Commit 26776c7
BUG/MINOR: tools: Add OOM check for malloc() in indent_msg()
This patch adds a missing out-of-memory (OOM) check after
the call to `malloc()` in `indent_msg()`. If memory
allocation fails, the function returns NULL to prevent
undefined behavior.
Co-authored-by: Christian Norbert Menges <christian.norbert.menges@sap.com>1 parent aa20905 commit 26776c7
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4689 | 4689 | | |
4690 | 4690 | | |
4691 | 4691 | | |
| 4692 | + | |
| 4693 | + | |
4692 | 4694 | | |
4693 | 4695 | | |
4694 | 4696 | | |
| |||
0 commit comments