File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,7 @@ impl WasiLibc377Bug {
23
23
if let Some ( ( major, minor, patch) ) = parse_clang_version ( clang_version) {
24
24
let earliest_safe =
25
25
parse_clang_version ( EARLIEST_PROBABLY_SAFE_CLANG_VERSION ) . unwrap ( ) ;
26
- if ( major, minor, patch) >= earliest_safe {
27
- return Ok ( ( ) ) ;
28
- } else {
26
+ if ( major, minor, patch) < earliest_safe {
29
27
return Err ( Self {
30
28
clang_version : Some ( clang_version. clone ( ) ) ,
31
29
} ) ;
@@ -37,20 +35,16 @@ impl WasiLibc377Bug {
37
35
) ;
38
36
}
39
37
}
40
- // If we can't assert that the module uses wit-bindgen OR was compiled
41
- // with a new-enough wasi-sdk, conservatively assume it may be buggy.
42
- Err ( Self {
43
- clang_version : None ,
44
- } )
38
+ Ok ( ( ) )
45
39
}
46
40
}
47
41
48
42
impl std:: fmt:: Display for WasiLibc377Bug {
49
43
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
50
44
write ! (
51
45
f,
52
- "This Wasm module may have been compiled with wasi-sdk version <19 which \
53
- contains a critical memory safety bug. For more information, see: \
46
+ "This Wasm module appears to have been compiled with wasi-sdk version <19 \
47
+ which contains a critical memory safety bug. For more information, see: \
54
48
https://github.com/fermyon/spin/issues/2552"
55
49
)
56
50
}
You can’t perform that action at this time.
0 commit comments