Hugal31 / yara-rust

Rust bindings for VirusTotal/Yara
Apache License 2.0
70 stars 30 forks source link

use *const c_char instead of *const i8 to compile on aarch64 #146

Closed nrxus closed 5 months ago

nrxus commented 5 months ago

x86_64 and aarch64 chars are not both i8. x86 has signed characters, aarch has unsigned characters. To make this be cross-compatible we should be using c_char instead.

This was broken in this commit: https://github.com/Hugal31/yara-rust/commit/6cdad5245a0e1d32b30d4c1cc4c0812bd9c7d6b9