Commit e57cd43
committed
fix(test): assert exact T1 clock in DYNCALL overflow-addr regression test
Address huitseeker review comment #3006679141 (PR 0xMiden#2904 review 4027183231):
the previous assert_ne!(recorded_overflow_addr, ZERO) passes even on the
buggy path because both T1 and T2 are nonzero when there are ≥2 overflow
entries.
Fix: scan all PUSH rows that precede the DYNCALL row in the execution trace,
take the second-to-last (T1 = clock of push(0)) and last (T2 = clock of
push(HASH_ADDR)) rows, and assert that recorded_overflow_addr == T1. A
sanity check asserts T2 == T1 + ONE (they are in the same 8-op group).
This exact equality clearly distinguishes clk_after_pop_in_current_ctx()
(returns T1) from the buggy last_update_clk_in_current_ctx() (returns T2).
Also address adr1anh nit (review 4028964881, comment 3008362338): add the
missing blank lines before #### Changes and #### Bug fixes in CHANGELOG.md.1 parent 0ad83a7 commit e57cd43
2 files changed
+34
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1076 | 1076 | | |
1077 | 1077 | | |
1078 | 1078 | | |
1079 | | - | |
1080 | | - | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
1081 | 1103 | | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
1090 | 1112 | | |
1091 | 1113 | | |
1092 | 1114 | | |
| |||
0 commit comments