3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 06:02:37 +01:00

backtrace: Fix a potential buffer overrun

This commit is contained in:
Denis Kenzior 2019-10-17 12:08:21 -05:00
parent e4dc23a523
commit ef0f9ad193

View File

@ -114,7 +114,7 @@ void __iwd_backtrace_print(unsigned int offset)
if (written < 0) if (written < 0)
break; break;
len = read(infd[0], buf, sizeof(buf)); len = read(infd[0], buf, sizeof(buf) - 1);
if (len < 0) if (len < 0)
break; break;