diff options
author | Craig Tiller <ctiller@google.com> | 2015-12-08 08:53:09 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-12-08 08:53:09 -0800 |
commit | d391b560ece42fd3cae93df5551dbd2a42785535 (patch) | |
tree | 32b39cb4f7ce80ea1d802d0c5ccf7ff95e767cfe /src/core/transport | |
parent | e9307929d440d9323a3aa5655c65deed5f367e81 (diff) |
Add integer overflow cases
Diffstat (limited to 'src/core/transport')
-rw-r--r-- | src/core/transport/chttp2/hpack_parser.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/transport/chttp2/hpack_parser.c b/src/core/transport/chttp2/hpack_parser.c index e5453000ec..35a0d2a6b4 100644 --- a/src/core/transport/chttp2/hpack_parser.c +++ b/src/core/transport/chttp2/hpack_parser.c @@ -1066,7 +1066,7 @@ static int parse_value4(grpc_chttp2_hpack_parser *p, const gpr_uint8 *cur, error: gpr_log(GPR_ERROR, "integer overflow in hpack integer decoding: have 0x%08x, " - "got byte 0x%02x", + "got byte 0x%02x on byte 5", *p->parsing.value, *cur); return parse_error(p, cur, end); } @@ -1091,7 +1091,8 @@ static int parse_value5up(grpc_chttp2_hpack_parser *p, const gpr_uint8 *cur, gpr_log(GPR_ERROR, "integer overflow in hpack integer decoding: have 0x%08x, " - "got byte 0x%02x sometime after byte 4"); + "got byte 0x%02x sometime after byte 5", + *p->parsing.value, *cur); return parse_error(p, cur, end); } |