Commit f728d78
committed
fix(policy): fix panic in compile_tr_private_experimental for non-expandable policies
Keep pol_prob_map in sync with tapleaf_prob_vec by removing entries
from both data structures together. Previously, removing a node from
tapleaf_prob_vec without removing it from pol_prob_map caused a panic
when expand_fn returned the same policy (e.g. for pk(A) or
and(pk(A),pk(B))).
Fixes #9021 parent 78254b2 commit f728d78
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| 617 | + | |
617 | 618 | | |
618 | 619 | | |
619 | 620 | | |
620 | 621 | | |
| 622 | + | |
621 | 623 | | |
622 | 624 | | |
623 | 625 | | |
| |||
1276 | 1278 | | |
1277 | 1279 | | |
1278 | 1280 | | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
1279 | 1296 | | |
1280 | 1297 | | |
1281 | 1298 | | |
| |||
0 commit comments