We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 115685f commit 7c11ad7Copy full SHA for 7c11ad7
tests/assembly-llvm/stack-protector/stack-protector-heuristics-effect-llvm.rs
@@ -55,7 +55,7 @@ pub fn test1(a: *const u8) {
55
56
unsafe {
57
strcpy(buf.as_mut_ptr(), a);
58
- printf(b"%s\0".as_ptr(), buf.as_ptr());
+ printf(STR.as_ptr(), buf.as_ptr());
59
}
60
61
// all: __stack_chk_fail
@@ -74,7 +74,7 @@ pub fn test3(a: *const u8) {
74
75
76
77
78
79
80
@@ -90,7 +90,7 @@ pub fn test3(a: *const u8) {
90
#[no_mangle]
91
pub fn test5(a: *const u8) {
92
93
- printf(b"%s\0".as_ptr(), a);
+ printf(STR.as_ptr(), a);
94
95
96
0 commit comments