diff options
| author | Wander Lairson Costa <wander@redhat.com> | 2026-03-09 16:46:18 -0300 |
|---|---|---|
| committer | Tomas Glozar <tglozar@redhat.com> | 2026-03-10 10:32:37 +0100 |
| commit | a29430c2bc86b00e62f74299b866216390c7e418 (patch) | |
| tree | c8c3da30c9f01cdcd60d50f11eeeb6a60c5f2892 /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | a50c53884db83189947f213d4c7f8385c522d141 (diff) | |
rtla: Replace magic number with MAX_PATH
The trace functions use a buffer to manipulate strings that will be
written to tracefs files. These buffers are defined with a magic number
of 1024, which is a common source of vulnerabilities.
Replace the magic number 1024 with the MAX_PATH macro to make the code
safer and more readable. While at it, replace other instances of the
magic number with ARRAY_SIZE() when the buffer is locally defined.
Signed-off-by: Wander Lairson Costa <wander@redhat.com>
Link: https://lore.kernel.org/r/20260309195040.1019085-6-wander@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
