Skip to content

Commit 6a5073a

Browse files
committed
make bz_internal_error an extern fn
We're treating this as a soundness fix. Technically this is breaking MSRV, but we believe this will not be observed by any of our users.
1 parent 17171c2 commit 6a5073a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bzip2-sys/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ abi_compat! {
6969
}
7070

7171
#[no_mangle]
72-
pub fn bz_internal_error(errcode: c_int) {
72+
pub extern "C" fn bz_internal_error(errcode: c_int) {
7373
panic!("bz internal error: {}", errcode);
7474
}

0 commit comments

Comments
 (0)