Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: net/quic/quic_protocol.h

Issue 1987523003: Consider receiving crypto frames on non crypto stream as memory corruption. Protected by FLAG_quic_… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@122080193
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_flags.cc ('k') | net/quic/quic_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_
6 #define NET_QUIC_QUIC_PROTOCOL_H_ 6 #define NET_QUIC_QUIC_PROTOCOL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 // FEC data is malformed. 522 // FEC data is malformed.
523 QUIC_INVALID_FEC_DATA = 5, 523 QUIC_INVALID_FEC_DATA = 5,
524 // STREAM frame data is malformed. 524 // STREAM frame data is malformed.
525 QUIC_INVALID_STREAM_DATA = 46, 525 QUIC_INVALID_STREAM_DATA = 46,
526 // STREAM frame data overlaps with buffered data. 526 // STREAM frame data overlaps with buffered data.
527 QUIC_OVERLAPPING_STREAM_DATA = 87, 527 QUIC_OVERLAPPING_STREAM_DATA = 87,
528 // Received STREAM frame data is not encrypted. 528 // Received STREAM frame data is not encrypted.
529 QUIC_UNENCRYPTED_STREAM_DATA = 61, 529 QUIC_UNENCRYPTED_STREAM_DATA = 61,
530 // Attempt to send unencrypted STREAM frame. 530 // Attempt to send unencrypted STREAM frame.
531 QUIC_ATTEMPT_TO_SEND_UNENCRYPTED_STREAM_DATA = 88, 531 QUIC_ATTEMPT_TO_SEND_UNENCRYPTED_STREAM_DATA = 88,
532 // Received a frame which is likely the result of memory corruption.
533 QUIC_MAYBE_CORRUPTED_MEMORY = 89,
532 // FEC frame data is not encrypted. 534 // FEC frame data is not encrypted.
533 QUIC_UNENCRYPTED_FEC_DATA = 77, 535 QUIC_UNENCRYPTED_FEC_DATA = 77,
534 // RST_STREAM frame data is malformed. 536 // RST_STREAM frame data is malformed.
535 QUIC_INVALID_RST_STREAM_DATA = 6, 537 QUIC_INVALID_RST_STREAM_DATA = 6,
536 // CONNECTION_CLOSE frame data is malformed. 538 // CONNECTION_CLOSE frame data is malformed.
537 QUIC_INVALID_CONNECTION_CLOSE_DATA = 7, 539 QUIC_INVALID_CONNECTION_CLOSE_DATA = 7,
538 // GOAWAY frame data is malformed. 540 // GOAWAY frame data is malformed.
539 QUIC_INVALID_GOAWAY_DATA = 8, 541 QUIC_INVALID_GOAWAY_DATA = 8,
540 // WINDOW_UPDATE frame data is malformed. 542 // WINDOW_UPDATE frame data is malformed.
541 QUIC_INVALID_WINDOW_UPDATE_DATA = 57, 543 QUIC_INVALID_WINDOW_UPDATE_DATA = 57,
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 QUIC_CONNECTION_MIGRATION_NO_MIGRATABLE_STREAMS = 81, 690 QUIC_CONNECTION_MIGRATION_NO_MIGRATABLE_STREAMS = 81,
689 // Connection changed networks too many times. 691 // Connection changed networks too many times.
690 QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES = 82, 692 QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES = 82,
691 // Connection migration was attempted, but there was no new network to 693 // Connection migration was attempted, but there was no new network to
692 // migrate to. 694 // migrate to.
693 QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK = 83, 695 QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK = 83,
694 // Network changed, but connection had one or more non-migratable streams. 696 // Network changed, but connection had one or more non-migratable streams.
695 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84, 697 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84,
696 698
697 // No error. Used as bound while iterating. 699 // No error. Used as bound while iterating.
698 QUIC_LAST_ERROR = 89, 700 QUIC_LAST_ERROR = 90,
699 }; 701 };
700 702
701 // Must be updated any time a QuicErrorCode is deprecated. 703 // Must be updated any time a QuicErrorCode is deprecated.
702 const int kDeprecatedQuicErrorCount = 4; 704 const int kDeprecatedQuicErrorCount = 4;
703 const int kActiveQuicErrorCount = QUIC_LAST_ERROR - kDeprecatedQuicErrorCount; 705 const int kActiveQuicErrorCount = QUIC_LAST_ERROR - kDeprecatedQuicErrorCount;
704 706
705 typedef char DiversificationNonce[32]; 707 typedef char DiversificationNonce[32];
706 708
707 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { 709 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader {
708 QuicPacketPublicHeader(); 710 QuicPacketPublicHeader();
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1492 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1491 1493
1492 const struct iovec* iov; 1494 const struct iovec* iov;
1493 const int iov_count; 1495 const int iov_count;
1494 const size_t total_length; 1496 const size_t total_length;
1495 }; 1497 };
1496 1498
1497 } // namespace net 1499 } // namespace net
1498 1500
1499 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1501 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_flags.cc ('k') | net/quic/quic_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698