thomashart17 / c-rust

Repo for hosting examples of interoperability of rust and C using LLVM 14.
0 stars 2 forks source link

BCMP issue in Borsh #14

Open BorisJancicUWaterloo opened 1 year ago

BorisJancicUWaterloo commented 1 year ago

BCMP fails when serializing string in Borsh. May be loading an uninitialized chunk of memory in one of the compares.

in src/rust-jobs/borsh at fn test_string()

BorisJancicUWaterloo commented 1 year ago

test passes with

let x: String = "a".to_string();

and fails with

let x: String = "ab".to_string();