Skip to content

esp: use hash array in esp_transport_wrap icv calculation. #236

esp: use hash array in esp_transport_wrap icv calculation.

esp: use hash array in esp_transport_wrap icv calculation. #236

Workflow file for this run

name: Sanitizer Tests
on:
push:
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
sanitizer_test:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- name: "ASan"
target: "asan"
unit_target: "unit-asan"
esp_unit_target: "unit-esp-asan"
- name: "UBSan"
target: "ubsan"
unit_target: "unit-ubsan"
esp_unit_target: "unit-esp-ubsan"
- name: "LeakSan"
target: "leaksan"
unit_target: "unit-leaksan"
esp_unit_target: "unit-esp-leaksan"
steps:
- name: Workaround high-entropy ASLR
run: sudo sysctl vm.mmap_rnd_bits=28
- name: Checkout wolfIP
uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential autoconf automake libtool pkg-config check
sudo modprobe tun
- name: Clone and build wolfSSL from nightly-snapshot
run: |
git clone --depth=1 https://github.com/wolfssl/wolfssl --branch nightly-snapshot /tmp/wolfssl
cd /tmp/wolfssl
./autogen.sh
./configure --enable-all --enable-md5
make -j$(nproc)
sudo make install
sudo ldconfig
- name: Build wolfIP with ${{ matrix.name }}
run: |
mkdir -p build/port
make ${{ matrix.target }}
- name: Build unit tests with ${{ matrix.name }}
run: make ${{ matrix.unit_target }}
- name: Run unit tests
run: ./build/test/unit
- name: Build ESP unit tests with ${{ matrix.name }}
run: make ${{ matrix.esp_unit_target }}
- name: Run ESP unit tests
run: ./build/test/unit-esp
- name: Run standalone TTL expired test
run: ./build/test-ttl-expired