mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
backtrace: Fix a potential buffer overrun
This commit is contained in:
parent
e4dc23a523
commit
ef0f9ad193
@ -114,7 +114,7 @@ void __iwd_backtrace_print(unsigned int offset)
|
||||
if (written < 0)
|
||||
break;
|
||||
|
||||
len = read(infd[0], buf, sizeof(buf));
|
||||
len = read(infd[0], buf, sizeof(buf) - 1);
|
||||
if (len < 0)
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user