diff options
| author | Thaison Phan <thaisonphan@google.com> | 2026-08-07 17:15:00 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-08-10 18:23:11 -0700 |
| commit | 153f709c86394919ddf42a9a76c3bce064841c8d (patch) | |
| tree | f796c6c1586c1779522941d89d45f36df3edff90 /tools/perf/scripts/python/bin | |
| parent | 7c62c481bb43488147b8755cd92e467085ab106b (diff) | |
tools: ynl: check alloc fails in generated getter code
Generated YNL getter code does not check the return value of malloc() and
calloc() before passing the resulting pointer to memcpy(). This could lead
to a NULL pointer dereference on memory allocation failure.
Updated the C code generator to check for allocation failures and to return
an error code in getters.
Signed-off-by: Thaison Phan <thaisonphan@google.com>
Link: https://patch.msgid.link/20260807171500.7188-3-thaisonphan@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
