diff options
| author | John Ogness <john.ogness@linutronix.de> | 2026-03-26 14:44:02 +0106 |
|---|---|---|
| committer | Petr Mladek <pmladek@suse.com> | 2026-03-27 17:12:37 +0100 |
| commit | 407f666db2b12c71744e5c897a74284768450578 (patch) | |
| tree | e147186f88722b7638793fd3efd0f0ac76493f28 /tools/lib/python/kdoc/python_version.py | |
| parent | 8e81ecbf1cb46b8d2d13e772d5924b09bd60169a (diff) | |
printk_ringbuffer: Add sanity check for 0-size data
get_data() has a sanity check for regular data blocks to ensure at
least space for the ID exists. But a regular block should also have
at least 1 byte of data (otherwise it would be data-less instead of
regular).
Expand the get_data() block size sanity check to additionally expect
at least 1 byte of data.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Petr Mladek <pmladek@suse.com>
Link: https://patch.msgid.link/20260326133809.8045-2-john.ogness@linutronix.de
Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
