Commit 3bc3815
committed
Fixed invalid memory read/segfault
This patch fixes segfaults caused by invalid memory read during leafref
links removal process. It is tight hash_table implementation, as
hash_table removal of record can invalidate all other record pointers
due to memory reallocation process1 parent 2141fe0 commit 3bc3815
3 files changed
+22
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
| 291 | + | |
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
| |||
316 | 317 | | |
317 | 318 | | |
318 | 319 | | |
319 | | - | |
| 320 | + | |
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
| |||
654 | 655 | | |
655 | 656 | | |
656 | 657 | | |
657 | | - | |
| 658 | + | |
658 | 659 | | |
659 | 660 | | |
660 | 661 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3610 | 3610 | | |
3611 | 3611 | | |
3612 | 3612 | | |
| 3613 | + | |
3613 | 3614 | | |
3614 | 3615 | | |
| 3616 | + | |
| 3617 | + | |
3615 | 3618 | | |
3616 | 3619 | | |
3617 | 3620 | | |
| |||
3626 | 3629 | | |
3627 | 3630 | | |
3628 | 3631 | | |
3629 | | - | |
| 3632 | + | |
3630 | 3633 | | |
3631 | | - | |
| 3634 | + | |
| 3635 | + | |
| 3636 | + | |
| 3637 | + | |
| 3638 | + | |
3632 | 3639 | | |
3633 | 3640 | | |
3634 | 3641 | | |
3635 | 3642 | | |
3636 | 3643 | | |
| 3644 | + | |
3637 | 3645 | | |
| 3646 | + | |
| 3647 | + | |
| 3648 | + | |
3638 | 3649 | | |
3639 | 3650 | | |
3640 | 3651 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| |||
0 commit comments