martin-g opened a new pull request, #644: URL: https://github.com/apache/avro-rs/pull/644
Header parsing returns Err, never panics, on malformed metadata: all three sites use bytes.first(); an empty value yields the existing Details::BadCodecMetadata error. An explicit error (rather than silently falling back to the codec default level) was chosen because an empty level is malformed input, and failing closed on malformed attacker headers is the safer contract; the absent-key case still falls back to defaults as before. Reported-by: Security scans -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
