From 9c2a55c7ff3ac0422a466f7857db11c04ee31982 Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Tue, 14 Aug 2018 07:10:26 +0100 Subject: [PATCH] Increase allocator alignment to pointer size to avoid unaligned reads/writes. Unaligned operations found by ubsan. --- re2c/src/dfa/determinization.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re2c/src/dfa/determinization.h b/re2c/src/dfa/determinization.h index 942be272..d8c02556 100644 --- a/re2c/src/dfa/determinization.h +++ b/re2c/src/dfa/determinization.h @@ -27,7 +27,7 @@ struct dfa_t; struct tcmd_t; -typedef slab_allocator_t<> allocator_t; +typedef slab_allocator_t<4 * 1024, 1024 * 1024, sizeof(void*)> allocator_t; struct clos_t -- 2.40.0