Commit 60a6002
Al Viro
hostfs: fix string handling in __dentry_name()
strcpy() should not be used with destination potentially overlapping
the source; what's more, strscpy() in there is pointless - we already
know the amount we want to copy; might as well use memcpy().
Fixes: c278e81 "hostfs: Remove open coded strcpy()"
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent 40384c8 commit 60a6002
1 file changed
Lines changed: 6 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
115 | 101 | | |
116 | | - | |
117 | | - | |
| 102 | + | |
118 | 103 | | |
119 | 104 | | |
120 | 105 | | |
121 | 106 | | |
122 | | - | |
123 | | - | |
| 107 | + | |
| 108 | + | |
124 | 109 | | |
125 | 110 | | |
126 | 111 | | |
| |||
0 commit comments