diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ae2602d91..ec716b435 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: run: ./autogen.sh - name: Configure - run: ./configure CPPFLAGS='-Wall -Wextra' --enable-jit --enable-pcre2-8 --enable-pcre2-16 --enable-pcre2-32 + run: ./configure CPPFLAGS='-Wall -Wextra' --enable-jit --enable-pcre2-16 --enable-pcre2-32 - name: Build run: make @@ -43,7 +43,7 @@ jobs: run: ./autogen.sh - name: Configure - run: ./configure CPPFLAGS='-Wall -Wextra' --enable-jit --enable-pcre2-8 --enable-pcre2-16 --enable-pcre2-32 + run: ./configure CPPFLAGS='-Wall -Wextra' --enable-jit --enable-pcre2-16 --enable-pcre2-32 - name: Build run: make diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml new file mode 100644 index 000000000..19e35357b --- /dev/null +++ b/.github/workflows/dev.yml @@ -0,0 +1,31 @@ +name: Dev +on: [push, pull_request] + +jobs: + linux: + name: dev + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Autogen + run: ./autogen.sh + + - name: Configure + run: ./configure CC='gcc -fsanitize=undefined,address' CPPFLAGS='-Wall -Wextra -Werror -Wno-error=unused-but-set-parameter' --enable-jit --enable-pcre2-16 --enable-pcre2-32 --enable-debug --with-link-size=4 + + - name: Build + run: make -j2 + + - name: Test (main test script) + run: ./RunTest + + - name: Test (JIT test program) + run: ./pcre2_jit_test + + - name: Test (pcre2grep test script) + run: ./RunGrepTest + + - name: Test (pcre2posix test program) + run: ./pcre2posix_test -v diff --git a/src/pcre2_jit_simd_inc.h b/src/pcre2_jit_simd_inc.h index 793da05d0..c178d320d 100644 --- a/src/pcre2_jit_simd_inc.h +++ b/src/pcre2_jit_simd_inc.h @@ -496,7 +496,7 @@ struct sljit_jump *jump[2]; int i; SLJIT_ASSERT(common->mode == PCRE2_JIT_COMPLETE && offs1 > offs2 && offs2 >= 0); -SLJIT_ASSERT(diff <= IN_UCHARS(max_fast_forward_char_pair_offset())); +SLJIT_ASSERT(diff <= (unsigned)IN_UCHARS(max_fast_forward_char_pair_offset())); /* Initialize. */ if (common->match_end_ptr != 0)