Commit 2b5d5cc
committed
[lldb][debugserver] Max response size for qSpeedTest (llvm#156099)
The qSpeedTest packet is used for experiments to determine the optimal
packet size for a given communication medium, e.g. to transfer 10MB of
memory, is it faster to send a hundred 100KB packets or ten 1MB packets.
It creates a packet of the requested size in a stack allocation, but is
not checking that its buffer is large enough for the requested size.
Change this allocation to be on heap, and impose a maximum size that can
be tested (4MB, for now).
rdar://158630250
(cherry picked from commit ac8e7be)1 parent ecea917 commit 2b5d5cc
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4519 | 4519 | | |
4520 | 4520 | | |
4521 | 4521 | | |
4522 | | - | |
4523 | | - | |
4524 | | - | |
4525 | | - | |
4526 | | - | |
4527 | | - | |
| 4522 | + | |
| 4523 | + | |
| 4524 | + | |
| 4525 | + | |
| 4526 | + | |
| 4527 | + | |
4528 | 4528 | | |
4529 | 4529 | | |
4530 | 4530 | | |
| |||
0 commit comments