File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,22 +60,20 @@ jobs:
6060 grep -v 'would read block' /tmp/c.out | head -12
6161 exit $rc
6262
63- - name : memory-bio-dtls -- does the up_ref fix work
63+ - name : memory-bio-dtls -- dtls13 trace with the UAF fixed
6464 if : always()
6565 run : |
6666 cd dtls
6767 export LD_LIBRARY_PATH=/tmp/inst/lib
68+ sed -i '143s/#if 0/#if 1/' memory-bio-dtls.c
6869 gcc -g -O0 -o /tmp/mb13 memory-bio-dtls.c -I/tmp/inst/include \
6970 -L/tmp/inst/lib -lwolfssl -lpthread -lm || exit 1
70- sed 's/#ifdef WOLFSSL_DTLS13/#if 0/' memory-bio-dtls.c > /tmp/mb12.c
71- gcc -g -O0 -o /tmp/mb12 /tmp/mb12.c -I/tmp/inst/include \
72- -L/tmp/inst/lib -lwolfssl -lpthread -lm || exit 1
73- bad=0
74- for v in 13 12; do
75- timeout 15 /tmp/mb$v > /tmp/o$v.txt 2>&1
76- rc=$?
77- echo "=== DTLS 1.$v : rc=$rc (0=works, 124=hang, 139=segv)"
78- cat /tmp/o$v.txt | head -8
79- [ $rc -eq 0 ] || bad=1
71+ timeout 8 /tmp/mb13 > /tmp/o13.txt 2>&1
72+ echo "rc=$? lines=$(wc -l < /tmp/o13.txt)"
73+ for pat in 'BIO_MEMORY_write' 'client success' 'accept success' \
74+ 'Hello Retry' 'cookie' 'DoTls13' 'dtls13' 'Retransmit' 'Dropping'; do
75+ printf ' %-20s %s\n' "$pat" "$(grep -ic "$pat" /tmp/o13.txt)"
8076 done
81- exit $bad
77+ echo "=== last distinct wolfSSL messages before the spin:"
78+ grep -oE 'wolfSSL (Entering|Leaving) [A-Za-z0-9_]+|wolfSSL error [^,]*' /tmp/o13.txt \
79+ | uniq | tail -30
You can’t perform that action at this time.
0 commit comments