df8dcca9b5
The wrapper for that function made no attempt to ensure that the buffer would stay alive, and as a result use-after-free could easily occur. The fix is to require that the buffer be stuffed in an `Arc` box and to teach Core Graphics how to release the `Arc` when it's done with it.
19 lines
421 B
TOML
19 lines
421 B
TOML
[package]
|
|
name = "core-graphics"
|
|
description = "Bindings to Core Graphics for OS X"
|
|
homepage = "https://github.com/servo/core-graphics-rs"
|
|
repository = "https://github.com/servo/core-graphics-rs"
|
|
version = "0.12.0"
|
|
authors = ["The Servo Project Developers"]
|
|
license = "MIT / Apache-2.0"
|
|
|
|
[features]
|
|
default = []
|
|
elcapitan = []
|
|
|
|
[dependencies]
|
|
bitflags = "1.0"
|
|
core-foundation = "0.4"
|
|
foreign-types = "0.3.0"
|
|
libc = "0.2"
|