
Without it incfs/incfs_perf runtime fails in format_signature: malloc(): invalid size (unsorted) Aborted When compiled with gcc version 11.2.0. Also add check for NULL after the malloc, and remove unneeded space for uint32_t in signing_section. Bug: 211066171 Signed-off-by: Tadeusz Struk <tadeusz.struk@linaro.org> Change-Id: I62b775140e4b89f75335cbd65665cf6a3e0fe964
12 lines
502 B
Makefile
12 lines
502 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
CFLAGS += -D_FILE_OFFSET_BITS=64 -Wall -Werror -I../.. -I../../../../.. -fno-omit-frame-pointer -fsanitize=address -g
|
|
LDLIBS := -llz4 -lzstd -lcrypto -lpthread -fsanitize=address
|
|
TEST_GEN_PROGS := incfs_test incfs_stress incfs_perf
|
|
|
|
include ../../lib.mk
|
|
|
|
# Put after include ../../lib.mk since that changes $(TEST_GEN_PROGS)
|
|
# Otherwise you get multiple targets, this becomes the default, and it's a mess
|
|
EXTRA_SOURCES := utils.c
|
|
$(TEST_GEN_PROGS) : $(EXTRA_SOURCES)
|