]> granicus.if.org Git - re2c/commit
Avoid calling 'memcpy' to copy zero bytes from NULL source.
authorUlya Trofimovich <skvadrik@gmail.com>
Mon, 31 Jul 2017 12:30:44 +0000 (13:30 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Mon, 31 Jul 2017 12:58:19 +0000 (13:58 +0100)
commitd0dfcc2bb9de55a97a91115bce155bd730fc6e16
tree2df89db2c901eab043028533d520e20052164271
parent5d44c6d4fa3a064a06a35324fa2d020b21dc7689
Avoid calling 'memcpy' to copy zero bytes from NULL source.

With CXXFLAGS='-fsanitize=undefined' GCC complains about passing NULL
pointer to function which parameter is marked as 'attribute__((nonnull))'.
re2c/src/ast/scanner.cc
re2c/src/dfa/cfg/cfg.cc