kornelski / rust-security-framework

Bindings to the macOS Security.framework
https://lib.rs/security-framework
Apache License 2.0
240 stars 88 forks source link

Don't extend from an empty slice. #207

Closed brotskydotcom closed 3 months ago

brotskydotcom commented 3 months ago

Fixes kornelski/rust-security-framework#206.

kornelski commented 3 months ago

This is not the correct fix. Slices with a NULL pointer trigger UB immediately when they are created, not when they are used.

kornelski commented 3 months ago

Workaround for https://github.com/servo/core-foundation-rs/pull/688