Skip to content

Handling undefined behavior in inffast_chunk#28

Merged
vkrasnov merged 1 commit intocloudflare:gcc.amd64from
janaknat:gcc.amd64
Mar 11, 2021
Merged

Handling undefined behavior in inffast_chunk#28
vkrasnov merged 1 commit intocloudflare:gcc.amd64from
janaknat:gcc.amd64

Conversation

@janaknat
Copy link
Copy Markdown

@janaknat janaknat commented Mar 8, 2021

This ports a21a4e8 - "Handling undefined behavior in inffast_chunk" from the Chromium fork of zlib by Adenilson Cavalcanti.

Link to patch being ported: https://chromium.googlesource.com/chromium/src/third_party/zlib/+/a21a4e8f27567b7c36f8274bf16ebca78b9a68ab%5E%21/#F0

chunkcopy.h Outdated
return chunkcopy_core_safe(out, out - dist, len, limit);
#elif defined(__clang__) && !defined(__aarch64__)
/* Seems to perform better on 32bit (i.e. Android). */
out = chunkcopy_core_safe(out, out - dist, len, limit);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This case is missing return?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gah. Fixed.

This ports a21a4e8 - "Handling undefined behavior in inffast_chunk" from the Chromium fork of zlib.
@vkrasnov vkrasnov merged commit 959b4ea into cloudflare:gcc.amd64 Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants