-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stale comment referring to nonexisting WriteMetadata() function #1061
Comments
Btw, commit 0a63f99 removed the |
PiperOrigin-RevId: 557492308
PiperOrigin-RevId: 557492308
PiperOrigin-RevId: 557492308
Thanks @eustas , that makes sense. At Unity, we have been relying for quite some time (since 2016) on a manual fork of the encoder that added a feature to inject a custom string. This is used to identify whether a browser fed us a brotli-compressed or uncompressed data stream. Recently we have been working on getting us to a newer version of Brotli to clear some CVEs that were raised. As part of that update, I have tried to bring back the WriteMetadata function since that is what was used at the time. I had to change the code a little bit, as The code that I brought back is this: https://github.com/Unity-Technologies/brotli/pull/7/files#diff-f7342e36363c8b43f6debffb54f2de0d6d958a48320e4b7811efe2bc4942ead3R924-R964 @eustas I wonder if you might be able to know from a glance if there is any hope from that code still being correct? Should I expect to be able to utilize that kind of metadata serialization construct in the latest codebase branch? |
Sure, will take a look tomorrow morning. |
At glance looks ok. Perhaps |
Great, thanks for taking a peek! I'll read more into those parts, and see how to accommodate that in if needed. |
brotli/c/enc/encode.c
Line 932 in 9ff341d
WriteMetadata()
, but no such function seems to exist in the repository.Maybe it is intended to refer to the function WriteMetadataHeader, or maybe it is referring to an earlier now deleted function
BrotliEncoderWriteMetadata
?The text was updated successfully, but these errors were encountered: