Commit 30d7f08
authored
Correctly cast the extension lengths (#2144)
Correctly use a 32 bit integer for accumulating the length of ping
extensions.
The current code may accidentally truncate the length of an
extension that is greater than 64kb and fail the validation check. We
don't currently emit any extensions that are this length, but if we were
to do so in the future we might have issues with older nodes (without
this fix) will silently drop packets from newer nodes. We should
backport this to all versions.
Signed-off-by: Madelyn Olson <[email protected]>1 parent f5b92f5 commit 30d7f08
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3197 | 3197 | | |
3198 | 3198 | | |
3199 | 3199 | | |
3200 | | - | |
| 3200 | + | |
3201 | 3201 | | |
3202 | 3202 | | |
3203 | 3203 | | |
| |||
0 commit comments