Commit 9d8b6c4
committed
Use curSize for content-only input length in handshake/ack handlers
Since ProcessReply already reduces curSize by padSz after decryption,
use curStartIdx + curSize to bound content data instead of recomputing
it from buffer.length - padSz. This removes three more padSz references
from message processing code.1 parent 607e2ad commit 9d8b6c4
2 files changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18781 | 18781 | | |
18782 | 18782 | | |
18783 | 18783 | | |
18784 | | - | |
18785 | | - | |
18786 | | - | |
| 18784 | + | |
| 18785 | + | |
| 18786 | + | |
18787 | 18787 | | |
18788 | 18788 | | |
18789 | 18789 | | |
| |||
23634 | 23634 | | |
23635 | 23635 | | |
23636 | 23636 | | |
23637 | | - | |
23638 | | - | |
23639 | | - | |
| 23637 | + | |
| 23638 | + | |
| 23639 | + | |
23640 | 23640 | | |
23641 | 23641 | | |
23642 | 23642 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13518 | 13518 | | |
13519 | 13519 | | |
13520 | 13520 | | |
13521 | | - | |
| 13521 | + | |
| 13522 | + | |
| 13523 | + | |
13522 | 13524 | | |
13523 | 13525 | | |
13524 | 13526 | | |
| |||
0 commit comments