Skip to content

Commit 7c11ad7

Browse files
committed
modified: tests/assembly-llvm/stack-protector/stack-protector-heuristics-effect-llvm.rs
1 parent 115685f commit 7c11ad7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/assembly-llvm/stack-protector/stack-protector-heuristics-effect-llvm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub fn test1(a: *const u8) {
5555

5656
unsafe {
5757
strcpy(buf.as_mut_ptr(), a);
58-
printf(b"%s\0".as_ptr(), buf.as_ptr());
58+
printf(STR.as_ptr(), buf.as_ptr());
5959
}
6060

6161
// all: __stack_chk_fail
@@ -74,7 +74,7 @@ pub fn test3(a: *const u8) {
7474

7575
unsafe {
7676
strcpy(buf.as_mut_ptr(), a);
77-
printf(b"%s\0".as_ptr(), buf.as_ptr());
77+
printf(STR.as_ptr(), buf.as_ptr());
7878
}
7979

8080
// all: __stack_chk_fail
@@ -90,7 +90,7 @@ pub fn test3(a: *const u8) {
9090
#[no_mangle]
9191
pub fn test5(a: *const u8) {
9292
unsafe {
93-
printf(b"%s\0".as_ptr(), a);
93+
printf(STR.as_ptr(), a);
9494
}
9595

9696
// all: __stack_chk_fail

0 commit comments

Comments
 (0)