PR sanitizer/88619
* cfgexpand.c (expand_stack_vars): Only align prev_offset to
ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
* c-c++-common/asan/pr88619.c: New test.
From-SVN: r267633
2019-01-07 Jakub Jelinek <jakub@redhat.com>
+ PR sanitizer/88619
+ * cfgexpand.c (expand_stack_vars): Only align prev_offset to
+ ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
+
PR c++/85052
* tree-vect-generic.c: Include insn-config.h and recog.h.
(expand_vector_piecewise): Add defaulted ret_type argument,
prev_offset = frame_offset.to_constant ();
}
prev_offset = align_base (prev_offset,
- MAX (alignb, ASAN_MIN_RED_ZONE_SIZE),
+ ASAN_MIN_RED_ZONE_SIZE,
!FRAME_GROWS_DOWNWARD);
tree repr_decl = NULL_TREE;
unsigned HOST_WIDE_INT size
2019-01-07 Jakub Jelinek <jakub@redhat.com>
+ PR sanitizer/88619
+ * c-c++-common/asan/pr88619.c: New test.
+
PR c++/85052
* c-c++-common/builtin-convertvector-1.c: New test.
* c-c++-common/torture/builtin-convertvector-1.c: New test.
--- /dev/null
+/* PR sanitizer/88619 */
+/* { dg-do compile { target fstack_protector } } */
+/* { dg-options "-fstack-protector-strong -fsanitize=address" } */
+
+typedef int A __attribute__((aligned (64)));
+
+int
+main ()
+{
+ A b;
+ int *p = &b;
+ *(p - 1) = 123;
+ __builtin_alloca (b);
+}