wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

Fix ASAN warning with compatibility layer cipher list parsing

Open dgarske opened this issue 1 year ago • 1 comments

Description

Fix for ASAN warning with compatibility layer cipher lists in ParseCipherList and CheckcipherList.

wolfssl/src/ssl.c:11892:16: runtime error: applying non-zero offset 1 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior wolfssl/src/ssl.c:11892:16 in

wolfssl/src/internal.c:26632:16: runtime error: applying non-zero offset 1 to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior wolfssl/src/internal.c:26632:16 in

ZD 18175

Testing

./configure CC="clang -fsanitize=address" --enable-all && make check

Checklist

  • [ ] added tests
  • [ ] updated/added doxygen
  • [ ] updated appropriate READMEs
  • [ ] Updated manual and documentation

dgarske avatar Jun 28 '24 17:06 dgarske

Retest this please

dgarske avatar Jun 28 '24 21:06 dgarske

Retest this please

dgarske avatar Jul 01 '24 15:07 dgarske