diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index cf5598a18c738..fcc5e2b2bdfef 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -105,4 +105,11 @@ jobs: make env: NEWSHELL: ${{ matrix.newshell }} - + - name: Run fuzz tests + if: matrix.run_tests && contains(github.event.pull_request.head.ref, 'fuzz') + run: | + export PATH=${HOME}/bin:${HOME}/.local/bin:${PATH} + export LD_LIBRARY_PATH=${HOME}/lib/$(uname -m)-linux-gnu:${HOME}/lib:${HOME}/lib64:${LD_LIBRARY_PATH} + export PKG_CONFIG_PATH=${HOME}/lib/pkgconfig:${HOME}/lib/$(uname -m)-linux-gnu/pkgconfig:${PKG_CONFIG_PATH} + cd test + make fuzz-tests diff --git a/libr/util/pkcs7.c b/libr/util/pkcs7.c index 72d2b7bab3503..7722e05538ecd 100644 --- a/libr/util/pkcs7.c +++ b/libr/util/pkcs7.c @@ -672,8 +672,8 @@ static bool r_pkcs7_parse_spcmessagedigest(SpcDigestInfo *messageDigest, RASN1Ob R_API SpcIndirectDataContent *r_pkcs7_parse_spcinfo(RCMS *cms) { r_return_val_if_fail (cms, NULL); - if (strcmp (cms->signedData.contentInfo.contentType->string, - "spcIndirectDataContext")) { + RASN1String *type = cms->signedData.contentInfo.contentType; + if (type && strcmp (type->string, "spcIndirectDataContext")) { return NULL; }