Commit f7a1c02
ecryptfs: Replace memcpy + manual NUL termination with strscpy
Use strscpy() to copy the NUL-terminated '->token.password.signature'
and 'sig' to the destination buffers instead of using memcpy() followed
by manual NUL terminations.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Tyler Hicks <code@tyhicks.com>1 parent 7d9ebf3 commit f7a1c02
2 files changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | | - | |
38 | | - | |
| 37 | + | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2458 | 2458 | | |
2459 | 2459 | | |
2460 | 2460 | | |
2461 | | - | |
2462 | | - | |
| 2461 | + | |
2463 | 2462 | | |
2464 | 2463 | | |
2465 | 2464 | | |
| |||
2479 | 2478 | | |
2480 | 2479 | | |
2481 | 2480 | | |
2482 | | - | |
| 2481 | + | |
2483 | 2482 | | |
2484 | | - | |
2485 | 2483 | | |
2486 | 2484 | | |
2487 | 2485 | | |
| |||
0 commit comments