Commit 89db014
committed
test: Reset EIP-712 filtering globals on every process_data call
InputData.process_data() reset current_path on entry but left
filtering_paths, filtering_tokens, filtering_calldatas and sig_ctx
populated whenever the `filters` argument was omitted. As a result, a
prior filtered signing flow contaminated later supposedly-unfiltered
flows in the same Python process: the helper would replay leftover
filter descriptors as extra APDUs and corrupt downstream snapshot
comparisons or assertions.
Clear every piece of module-level state at the start of each call,
regardless of whether filters are provided. This makes the helper
re-entrant within a single test process so cross-test state leakage
no longer hides UI/signing regressions (CWE-664).1 parent 350ca89 commit 89db014
1 file changed
Lines changed: 16 additions & 1 deletion
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
598 | | - | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
599 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
600 | 615 | | |
601 | 616 | | |
602 | 617 | | |
| |||
0 commit comments