File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
tests/assembly-llvm/stack-protector Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,10 @@ pub fn local_large_var_cloned(f: fn(Gigastruct)) {
280
280
// ```
281
281
282
282
// all: __security_check_cookie
283
+
284
+ // FIXME: How does the rust compiler handle moves of large structures?
285
+ // rusty-NOT: __security_check_cookie
286
+
283
287
// strong: __security_check_cookie
284
288
// basic: __security_check_cookie
285
289
// none-NOT: __security_check_cookie
@@ -318,8 +322,14 @@ extern "C" {
318
322
#[ no_mangle]
319
323
pub fn alloca_small_compile_time_constant_arg ( f : fn ( * mut ( ) ) ) {
320
324
f ( unsafe { alloca ( 8 ) } ) ;
321
-
325
+
322
326
// all: __security_check_cookie
327
+
328
+ // FIXME: Rusty thinks a function that returns a mutable raw pointer may
329
+ // be a stack memory allocation function, so it performs stack smash protection.
330
+ // Is it possible to optimize the heuristics?
331
+ // rusty: __security_check_cookie
332
+
323
333
// strong-NOT: __security_check_cookie
324
334
// basic-NOT: __security_check_cookie
325
335
// none-NOT: __security_check_cookie
You can’t perform that action at this time.
0 commit comments