lkml.org 
[lkml]   [2026]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subject[PATCH net-next 0/2] tools: ynl: update NULL pointer handling in generated code
From
This series fixes potential NULL pointer dereferences in YNL-generated C
code during dump list freeing and memory allocation parsing/setters.

Testing:
- Regenerated all c headers/sources under tools/net/ynl/generated/
- Built libynl, ynltool, and test binaries without errors or warnings
- Ran make target run_tests in tools/net/ynl/tests successfully
- Ran tools/testing/selftests/drivers/net/psp.py in QEMU x86_64
successfully

Thaison Phan (2):
tools: ynl: check for null ptr on dump free
tools: ynl: check malloc/calloc fails in generated code

tools/net/ynl/pyynl/ynl_gen_c.py | 55 ++++++++++++++++++++++----------
1 file changed, 38 insertions(+), 17 deletions(-)

--
2.55.0.571.g244d577d93-goog


\
 
 \ /
  Last update: 2026-08-03 22:20    [W:0.074 / U:0.201 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog