Commit 80fdd8b
committed
librlist: fix uninitialized error text in rlist_alloc()
Problem: In some cases, rlist_alloc() leaves errp->text uninitialized
when returning an error. This can lead the caller to access unitialized
bytes, potentially causing a crash.
Always use errprintf() before returning an error from this function.1 parent f13739d commit 80fdd8b
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2164 | 2164 | | |
2165 | 2165 | | |
2166 | 2166 | | |
| 2167 | + | |
2167 | 2168 | | |
2168 | 2169 | | |
2169 | 2170 | | |
| |||
2174 | 2175 | | |
2175 | 2176 | | |
2176 | 2177 | | |
| 2178 | + | |
| 2179 | + | |
2177 | 2180 | | |
2178 | 2181 | | |
2179 | 2182 | | |
| |||
0 commit comments