Commit 0106264
committed
Fix router fuzz failure due to LengthLimitedReader
We recently switched the decode_msg macro in the router fuzz target from
reading from a Cursor to reading from a slice. This caused a failure because
the slice advances its pointer as it is being read from, so asserting that the
length of the slice is equal to the length of the message that was read no
longer works. Instead assert that the original fuzz data length is equal to
the length of the message that was read.1 parent 8b3f6cc commit 0106264
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
0 commit comments