cmake: run tests in parallel; misc/podman: add 30-rebuild-stubs.sh
This commit is contained in:
+6
-4
@@ -1031,14 +1031,16 @@ void Packer::compressWithFilters(byte *i_ptr,
|
||||
assert(orig_ft.id == 0);
|
||||
|
||||
// prepare methods and filters
|
||||
int methods[256];
|
||||
constexpr int MAX_METHODS = 8;
|
||||
constexpr int MAX_FILTERS = 16;
|
||||
int methods[MAX_METHODS];
|
||||
int nmethods = prepareMethods(methods, ph.method, getCompressionMethods(M_ALL, ph.level));
|
||||
assert(nmethods > 0);
|
||||
assert(nmethods < 256);
|
||||
int filters[256];
|
||||
assert(nmethods < MAX_METHODS);
|
||||
int filters[MAX_FILTERS];
|
||||
int nfilters = prepareFilters(filters, filter_strategy, getFilters());
|
||||
assert(nfilters > 0);
|
||||
assert(nfilters < 256);
|
||||
assert(nfilters < MAX_FILTERS);
|
||||
#if 0
|
||||
printf("compressWithFilters: m(%d):", nmethods);
|
||||
for (int i = 0; i < nmethods; i++)
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
# Copyright (C) Markus Franz Xaver Johannes Oberhumer
|
||||
#
|
||||
|
||||
# NOTE: see misc/podman/rebuild-stubs/20-image-run-shell.sh
|
||||
# NOTE: see misc/podman/rebuild-stubs/30-rebuild-stubs.sh
|
||||
# how to rebuild the UPX stubs from source code
|
||||
|
||||
MAKEFLAGS += -rR
|
||||
|
||||
@@ -264,6 +264,7 @@ int upx_rand(void) noexcept { return ::rand(); }
|
||||
|
||||
void upx_rand_init(void) noexcept {
|
||||
unsigned seed = 0;
|
||||
seed ^= UPX_VERSION_HEX;
|
||||
#if (!HAVE_GETTIMEOFDAY || (ACC_OS_DOS32 && defined(__DJGPP__))) && !defined(__wasi__)
|
||||
seed ^= (unsigned) time(nullptr);
|
||||
seed ^= ((unsigned) clock()) << 12;
|
||||
|
||||
Reference in New Issue
Block a user