| Index: net/spdy/fuzzing/hpack_fuzz_util.cc
|
| diff --git a/net/spdy/fuzzing/hpack_fuzz_util.cc b/net/spdy/fuzzing/hpack_fuzz_util.cc
|
| index 45f3defa4351027971b38a38fd20ec0f0479dd96..fc9a84a5d3dd057244f5f6b434db52ffb1c085ae 100644
|
| --- a/net/spdy/fuzzing/hpack_fuzz_util.cc
|
| +++ b/net/spdy/fuzzing/hpack_fuzz_util.cc
|
| @@ -121,7 +121,8 @@ bool HpackFuzzUtil::NextHeaderBlock(Input* input,
|
| return false;
|
| }
|
|
|
| - size_t length = ntohl(*reinterpret_cast<const uint32*>(input->ptr()));
|
| + size_t length =
|
| + base::NetToHost32(*reinterpret_cast<const uint32*>(input->ptr()));
|
| input->offset += sizeof(uint32);
|
|
|
| if (input->remaining() < length) {
|
| @@ -134,7 +135,7 @@ bool HpackFuzzUtil::NextHeaderBlock(Input* input,
|
|
|
| // static
|
| string HpackFuzzUtil::HeaderBlockPrefix(size_t block_size) {
|
| - uint32 length = htonl(block_size);
|
| + uint32 length = base::HostToNet32(static_cast<uint32>(block_size));
|
| return string(reinterpret_cast<char*>(&length), sizeof(uint32));
|
| }
|
|
|
|
|