@@ -37,6 +37,18 @@ jobs:
|
|||||||
APT_PACKAGES="gcc-multilib" make apt-install
|
APT_PACKAGES="gcc-multilib" make apt-install
|
||||||
CFLAGS="-m32 -O1 -fstack-protector" make check V=1
|
CFLAGS="-m32 -O1 -fstack-protector" make check V=1
|
||||||
|
|
||||||
|
check-x32:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: make check on x32 ABI # https://en.wikipedia.org/wiki/X32_ABI
|
||||||
|
env:
|
||||||
|
CHECK_CONSTRAINED_MEM: true
|
||||||
|
run: |
|
||||||
|
sudo apt update
|
||||||
|
APT_PACKAGES="gcc-multilib" make apt-install
|
||||||
|
CFLAGS="-mx32 -O1 -fstack-protector" make check V=1
|
||||||
|
|
||||||
gcc-7-libzstd:
|
gcc-7-libzstd:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -172,8 +172,9 @@ static size_t HUF_DecompressAsmArgs_init(HUF_DecompressAsmArgs* args, void* dst,
|
|||||||
|
|
||||||
BYTE* const oend = (BYTE*)dst + dstSize;
|
BYTE* const oend = (BYTE*)dst + dstSize;
|
||||||
|
|
||||||
/* We're assuming x86-64 BMI2 - assure that this is the case. */
|
/* The following condition is false on x32 platform,
|
||||||
assert(MEM_isLittleEndian() && !MEM_32bits());
|
* but HUF_asm is not compatible with this ABI */
|
||||||
|
if (!(MEM_isLittleEndian() && !MEM_32bits())) return 1;
|
||||||
|
|
||||||
/* strict minimum : jump table + 1 byte per stream */
|
/* strict minimum : jump table + 1 byte per stream */
|
||||||
if (srcSize < 10)
|
if (srcSize < 10)
|
||||||
|
|||||||
Reference in New Issue
Block a user