Commit d55851a
committed
Fix Point_process SoA UAF on free and NetCon weight ctor dual-write
ASan CI: nrn_point_process_soa_sync during free_one_point/relocate read
freed Prop or dangling state. Stop syncing on free (SoA row released in
~Point_process); harden sync to verify prop still owns this pnt and that
_vnt is a live NrnThread.
NetCon factory wrote magnitude only to weight_ heap; HOC weight[] reads
SoA and init_events soa_to_heap wiped the value (0.0 != 0.1). Mirror
magnitude into Weight SoA after construction.1 parent 15b4db3 commit d55851a
2 files changed
Lines changed: 28 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4903 | 4903 | | |
4904 | 4904 | | |
4905 | 4905 | | |
| 4906 | + | |
| 4907 | + | |
| 4908 | + | |
| 4909 | + | |
| 4910 | + | |
| 4911 | + | |
| 4912 | + | |
4906 | 4913 | | |
4907 | 4914 | | |
4908 | 4915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
63 | 67 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
68 | 75 | | |
69 | 76 | | |
70 | 77 | | |
71 | 78 | | |
72 | | - | |
73 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
74 | 84 | | |
75 | 85 | | |
76 | 86 | | |
| |||
359 | 369 | | |
360 | 370 | | |
361 | 371 | | |
362 | | - | |
| 372 | + | |
| 373 | + | |
363 | 374 | | |
364 | 375 | | |
365 | | - | |
| 376 | + | |
366 | 377 | | |
367 | 378 | | |
368 | 379 | | |
| |||
387 | 398 | | |
388 | 399 | | |
389 | 400 | | |
| 401 | + | |
390 | 402 | | |
391 | 403 | | |
392 | 404 | | |
393 | 405 | | |
394 | | - | |
| 406 | + | |
395 | 407 | | |
396 | 408 | | |
397 | 409 | | |
| |||
0 commit comments