Commit 60b63e24 authored by Sam Maier's avatar Sam Maier Committed by Commit Bot

Adding const to GetUncompressedSize

Change-Id: Ib538c60f5e1fa2e81432bc0992a482aced6eb7cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1897847
Auto-Submit: Sam Maier <smaier@chromium.org>
Reviewed-by: default avatarAdenilson Cavalcanti <cavalcantii@chromium.org>
Commit-Queue: Sam Maier <smaier@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712161}
parent fa2eb6d1
...@@ -34,7 +34,7 @@ uLongf GZipExpectedCompressedSize(uLongf input_size) { ...@@ -34,7 +34,7 @@ uLongf GZipExpectedCompressedSize(uLongf input_size) {
// The expected decompressed size is stored in the last // The expected decompressed size is stored in the last
// 4 bytes of |input| in LE. // 4 bytes of |input| in LE.
uint32_t GetUncompressedSize(Bytef* compressed_data, size_t length) { uint32_t GetUncompressedSize(const Bytef* compressed_data, size_t length) {
uint32_t size; uint32_t size;
if (length < sizeof(size)) if (length < sizeof(size))
return 0; return 0;
......
...@@ -19,7 +19,7 @@ namespace zlib_internal { ...@@ -19,7 +19,7 @@ namespace zlib_internal {
uLongf GZipExpectedCompressedSize(uLongf input_size); uLongf GZipExpectedCompressedSize(uLongf input_size);
uint32_t GetUncompressedSize(Bytef* compressed_data, size_t length); uint32_t GetUncompressedSize(const Bytef* compressed_data, size_t length);
int GzipCompressHelper(Bytef* dest, int GzipCompressHelper(Bytef* dest,
uLongf* dest_length, uLongf* dest_length,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment