[PR #909] Update buffer parameter types in encode and decode functions #1486

Open
opened 2026-01-29 20:54:21 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/google/brotli/pull/909

State: closed
Merged: No


brotil is used in the TianoCore project as a a git submodule. Without this change, the compile fails on Fedora 34 with errors like
brotli/c/dec/decode.c:2033:41: error: argument 2 of type ‘const uint8_t ’ {aka ‘const unsigned char ’} declared as a pointer [-Werror=vla-parameter]
2033 | size_t encoded_size, const uint8_t
encoded_buffer, size_t
decoded_size,

**Original Pull Request:** https://github.com/google/brotli/pull/909 **State:** closed **Merged:** No --- brotil is used in the TianoCore project as a a git submodule. Without this change, the compile fails on Fedora 34 with errors like brotli/c/dec/decode.c:2033:41: error: argument 2 of type ‘const uint8_t *’ {aka ‘const unsigned char *’} declared as a pointer [-Werror=vla-parameter] 2033 | size_t encoded_size, const uint8_t* encoded_buffer, size_t* decoded_size,
claunia added the pull-request label 2026-01-29 20:54:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#1486