frida: switch truncate to dd
MODIFY
frida_mode/test/libpcap/GNUmakefile
frida_mode/test/libpcap/GNUmakefile
@@ -142,7 +142,7 @@ $(TEST_BIN): $(HARNESS_OBJ) $(PCAPTEST_OBJ) $(LIBPCAP_LIB)
########## DUMMY #######
$(AFLPP_DRIVER_DUMMY_INPUT): | $(TCPDUMP_TESTS_DIR)
- truncate -s 1M $@
+ dd if=/dev/zero bs=1M count=1 of=$@
###### TEST DATA #######

MODIFY
frida_mode/test/osx-lib/GNUmakefile
frida_mode/test/osx-lib/GNUmakefile
@@ -52,7 +52,7 @@ $(TESTINSTR_DATA_FILE): | $(TESTINSTR_DATA_DIR)
echo -n "$$FA$$" > $@
$(AFLPP_DRIVER_DUMMY_INPUT): | $(BUILD_DIR)
- truncate -s 1M $@
+ dd if=/dev/zero bs=1M count=1 of=$@
$(HARNESS_BIN): $(HARNESS_SRC) | $(BUILD_DIR)
$(CC) $(CFLAGS) $(LDFLAGS) $(HARNESS_LDFLAGS) -o $@ $<

MODIFY
frida_mode/test/png/persistent/GNUmakefile
frida_mode/test/png/persistent/GNUmakefile
@@ -49,7 +49,7 @@ $(BUILD_DIR):
mkdir -p $@
$(AFLPP_DRIVER_DUMMY_INPUT): | $(BUILD_DIR)
- truncate -s 1M $@
+ dd if=/dev/zero bs=1M count=1 of=$@
qemu: | $(BUILD_DIR)
AFL_QEMU_PERSISTENT_ADDR=$(AFL_QEMU_PERSISTENT_ADDR) \

MODIFY
frida_mode/test/png/persistent/hook/GNUmakefile
frida_mode/test/png/persistent/hook/GNUmakefile
@@ -72,7 +72,7 @@ $(TEST_DATA_DIR): | $(BUILD_DIR)
mkdir -p $@
$(AFLPP_DRIVER_DUMMY_INPUT): | $(BUILD_DIR)
- truncate -s 1M $@
+ dd if=/dev/zero bs=1M count=1 of=$@
qemu: $(AFLPP_DRIVER_DUMMY_INPUT) $(AFLPP_QEMU_DRIVER_HOOK_OBJ) | $(BUILD_DIR)
AFL_QEMU_PERSISTENT_HOOK=$(AFLPP_QEMU_DRIVER_HOOK_OBJ) \

MODIFY
frida_mode/test/re2/GNUmakefile
frida_mode/test/re2/GNUmakefile
@@ -124,7 +124,7 @@ $(TEST_DATA_DIR): | $(BUILD_DIR)
mkdir -p $@
$(AFLPP_DRIVER_DUMMY_INPUT): | $(TEST_DATA_DIR)
- truncate -s 1M $@
+ dd if=/dev/zero bs=1M count=1 of=$@
###### TEST DATA #######

MODIFY
frida_mode/test/sqlite/GNUmakefile
frida_mode/test/sqlite/GNUmakefile
@@ -120,7 +120,7 @@ sqlite: $(SQLITE_TEST_DIR) $(TEST_BIN)
########## DUMMY #######
$(AFLPP_DRIVER_DUMMY_INPUT): | $(SQLITE_TEST_DIR)
- truncate -s 1M $@
+ dd if=/dev/zero bs=1M count=1 of=$@
###### TEST DATA #######

frida: switch truncate to dd