| Index: net/tools/quic/quic_packet_reader.h
|
| diff --git a/net/tools/quic/quic_packet_reader.h b/net/tools/quic/quic_packet_reader.h
|
| index 86ded5b325fef80332772c9bdceb19a6d7d79f10..0d99afbc745821b92480ebeb4c9b79eae3795753 100644
|
| --- a/net/tools/quic/quic_packet_reader.h
|
| +++ b/net/tools/quic/quic_packet_reader.h
|
| @@ -61,7 +61,9 @@ class QuicPacketReader {
|
| // cbuf_ is used for ancillary data from the kernel on recvmmsg.
|
| char cbuf_[kSpaceForOverflowAndIp * kNumPacketsPerReadMmsgCall];
|
| // buf_ is used for the data read from the kernel on recvmmsg.
|
| - char buf_[2 * kMaxPacketSize * kNumPacketsPerReadMmsgCall];
|
| + // TODO(danzh): change it to be a pointer to avoid the allocation on the stack
|
| + // from exceeding maximum allowed frame size.
|
| + char buf_[kMaxPacketSize * kNumPacketsPerReadMmsgCall];
|
| // iov_ and mmsg_hdr_ are used to supply cbuf and buf to the recvmmsg call.
|
| iovec iov_[kNumPacketsPerReadMmsgCall];
|
| mmsghdr mmsg_hdr_[kNumPacketsPerReadMmsgCall];
|
|
|