mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
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> |
||
|---|---|---|
| .. | ||
| lib | ||
| __init__.py | ||
| .gitignore | ||
| cli.py | ||
| ynl_gen_c.py | ||
| ynl_gen_rst.py | ||