Skip to content

Commit

Permalink
Fix MS-DOS fuzz tests (#17496)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazarmy authored Aug 20, 2020
1 parent 5f0be49 commit 4bc96b8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions libr/util/pkcs7.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4bc96b8

Please sign in to comment.