Commit 9a3a8a0
committed
blkdev.cc: fix STRING_OVERFLOW
Fix for:
CID 1258439 (#1 of 1): Copy into fixed size buffer (STRING_OVERFLOW)
2. fixed_size_dest: You might overrun the 4096 byte fixed-size
string devname by copying dev + 5 without checking the length.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>1 parent e221463 commit 9a3a8a0
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
0 commit comments