scylladb / cpp-rust-driver

API-compatible rewrite of https://github.com/scylladb/cpp-driver as a wrapper for Rust driver.
GNU Lesser General Public License v2.1
16 stars 11 forks source link

Fix cass_error_desc argument type #79

Closed Gor027 closed 2 years ago

Gor027 commented 2 years ago

The argument of enum type CassError is passed by value, earlier the function got the argument by pointer reference and tried to dereference it, which led to some undefined behavior.

Pre-review checklist