summaryrefslogtreecommitdiff
path: root/tools/Makefile.in
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2022-02-07 19:58:04 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2022-02-07 20:02:11 +0100
commitf83b3962c10bf4e196fec0e3e735820ba908661f (patch)
tree7c13caddb8d96b615ec0832a428b4c9d31fd344d /tools/Makefile.in
parent8dccc2314e2482370bc6e5cf007eb210994abdef (diff)
downloadlvm2-f83b3962c10bf4e196fec0e3e735820ba908661f.tar.gz
asan: fix some reports from libasan
When compiled and used with: CFLAGS="-fsanitize=address -g -O0" ASAN_OPTIONS=strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1 we have few reported issue - they where not normally spotted, since we were still accessing our own memory - but ouf of buffer-range. TODO: there is still something to enhance with handling of #orphan vgids
Diffstat (limited to 'tools/Makefile.in')
-rw-r--r--tools/Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/Makefile.in b/tools/Makefile.in
index e0e180474..25fe3b6b3 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -190,9 +190,9 @@ command-lines-input.h: $(srcdir)/command-lines.in Makefile
$(Q) set -o pipefail && \
( cat $(srcdir)/license.inc && \
echo "/* Do not edit. This file is generated by the Makefile. */" && \
- echo -en "const char _command_input[] =\n\n\"" && \
+ echo -en "static const char _command_input[] =\n\n\"" && \
$(EGREP) -v '^#|\-\-\-|^$$' $(srcdir)/command-lines.in | $(AWK) 'BEGIN {ORS = "\\n\"\n\""} //' && \
- echo "\\n\";" \
+ echo "\\n\\n\";" \
) > $@
$(SOURCES:%.c=%.d) $(SOURCES2:%.c=%.d): command-lines-input.h command-count.h cmds.h