Skip to content

Commit

Permalink
Assembly length checks (#396)
Browse files Browse the repository at this point in the history
* length check on fixed length decodes

* tests for out of bounds checks

* minimal length checks on swap structs
  • Loading branch information
hensha256 authored Nov 22, 2024
1 parent e5829f6 commit 1394ff2
Show file tree
Hide file tree
Showing 63 changed files with 239 additions and 65 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
129534
129705
Original file line number Diff line number Diff line change
@@ -1 +1 @@
131448
131634
Original file line number Diff line number Diff line change
@@ -1 +1 @@
123653
123813
Original file line number Diff line number Diff line change
@@ -1 +1 @@
123795
123955
Original file line number Diff line number Diff line change
@@ -1 +1 @@
125712
125788
Original file line number Diff line number Diff line change
@@ -1 +1 @@
125195
125220
Original file line number Diff line number Diff line change
@@ -1 +1 @@
132572
132648
Original file line number Diff line number Diff line change
@@ -1 +1 @@
132055
132080
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_collect_native.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
146402
146518
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_collect_sameRange.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
154977
155093
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_collect_withClose.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
154977
155093
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_collect_withTakePair.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
154342
154396
Original file line number Diff line number Diff line change
@@ -1 +1 @@
112067
112160
Original file line number Diff line number Diff line change
@@ -1 +1 @@
119858
119974
Original file line number Diff line number Diff line change
@@ -1 +1 @@
119223
119277
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_decrease_burnEmpty.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
135388
135480
Original file line number Diff line number Diff line change
@@ -1 +1 @@
128528
128620
Original file line number Diff line number Diff line change
@@ -1 +1 @@
132545
132661
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_decrease_take_take.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
120478
120564
Original file line number Diff line number Diff line change
@@ -1 +1 @@
158857
158973
Original file line number Diff line number Diff line change
@@ -1 +1 @@
157809
157884
Original file line number Diff line number Diff line change
@@ -1 +1 @@
142121
142237
Original file line number Diff line number Diff line change
@@ -1 +1 @@
136396
136418
Original file line number Diff line number Diff line change
@@ -1 +1 @@
177446
177562
Original file line number Diff line number Diff line change
@@ -1 +1 @@
148210
148338
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_native.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
366017
366111
Original file line number Diff line number Diff line change
@@ -1 +1 @@
374535
374685
Original file line number Diff line number Diff line change
@@ -1 +1 @@
373771
373880
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_onSameTickLower.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
317440
317534
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_onSameTickUpper.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
318110
318204
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_sameRange.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
243679
243773
Original file line number Diff line number Diff line change
@@ -1 +1 @@
418887
419063
Original file line number Diff line number Diff line change
@@ -1 +1 @@
323471
323565
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_withClose.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
419993
420087
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_mint_withSettlePair.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
419063
419116
Original file line number Diff line number Diff line change
@@ -1 +1 @@
455837
455931
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_Bytecode.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6929
7029
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn1Hop_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
118538
118724
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn1Hop_nativeOut.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
117514
117700
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn1Hop_oneForZero.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
126329
126515
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn1Hop_zeroForOne.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
131993
132179
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn2Hops.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
186727
186913
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn2Hops_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
173272
173458
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn3Hops.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
241511
241697
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactIn3Hops_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
228056
228242
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactInputSingle.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
131001
131187
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactInputSingle_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
117546
117732
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactInputSingle_nativeOut.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
116490
116676
Original file line number Diff line number Diff line change
@@ -1 +1 @@
124796
124982
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut1Hop_nativeOut.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
118587
118773
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut1Hop_oneForZero.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
127402
127588
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut1Hop_zeroForOne.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
131274
131460
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut2Hops.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
185065
185251
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut2Hops_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
178587
178773
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut3Hops.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
238934
239120
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut3Hops_nativeIn.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
232456
232642
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOut3Hops_nativeOut.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
218511
218697
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOutputSingle.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
130279
130453
Original file line number Diff line number Diff line change
@@ -1 +1 @@
123801
123975
2 changes: 1 addition & 1 deletion .forge-snapshots/V4Router_ExactOutputSingle_nativeOut.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
117666
117840
Loading

0 comments on commit 1394ff2

Please sign in to comment.