]> granicus.if.org Git - re2c/commit
Fixed unaligned memory access.
authorUlya Trofimovich <skvadrik@gmail.com>
Mon, 31 Jul 2017 12:59:51 +0000 (13:59 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Mon, 31 Jul 2017 12:59:51 +0000 (13:59 +0100)
commitc7b8af0f6134c7675e5559165be5514a17286ae8
tree17737a5cc16cc5cdd3eae05ea2d77e87f9c4ace7
parentd0dfcc2bb9de55a97a91115bce155bd730fc6e16
Fixed unaligned memory access.

With CXXFLAGS='-fsanitize=undefined' GCC complains about unaligned access:
if custom allocator is used to allocate structs or other alignment-sensitive
things, then it must take care of the alignment (for example, add padding
to all unaligned blocks of memory which it allocates).
re2c/src/dfa/tcmd.h
re2c/src/re/re.h
re2c/src/util/slab_allocator.h