diff options
| author | Takashi Iwai <tiwai@suse.de> | 2026-10-02 10:18:22 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-10-02 10:43:18 +0200 |
| commit | b61a2369085fd995c8ad44245d3fbd45b1216f71 (patch) | |
| tree | 91bf6ceb35dd4aa14626566c79d2ee8edb143399 /tools/lib/python | |
| parent | 8b4d98aad61c3a9a5e01e0840470f9d7f32bc339 (diff) | |
ALSA: ump: Avoid dereference with max_src_size=0
safe_copy_string() refers the source pointer for a NUL terminator
before verifying the source size. When max_src_size=0, it may
dereference wrongly. Fix the verification order.
Only hypothetical hardening, and we see no actual issue in the current
code, as they are all valid sources.
Fixes: e3f035edadcc ("ALSA: ump: Copy FB name string more safely")
Link: https://patch.msgid.link/20261002081823.680131-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
