Skip to content

Commit

Permalink
Fuzzer: Adjust function declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Sep 27, 2024
1 parent ec05084 commit c1a00f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_and_fuzz.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build and Fuzz

on:
schedule:
# Run this every wednesday at 3:50. https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: '50 3 * * 3'
on: [push]
# schedule:
# # Run this every wednesday at 3:50. https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
# - cron: '50 3 * * 3'

jobs:
fuzz_msan:
Expand Down
2 changes: 2 additions & 0 deletions pkcs11/util_pkcs11.c
Original file line number Diff line number Diff line change
Expand Up @@ -6092,13 +6092,15 @@ bool match_meta_attributes(yubihsm_pkcs11_session *session,
return true;
}

#ifndef FUZZING
static void increment_ctr(uint8_t *ctr, size_t len) {
while (len > 0) {
if (++ctr[--len]) {
break;
}
}
}
#endif

CK_RV ecdh_with_kdf(ecdh_session_key *shared_secret, uint8_t *fixed_info,
size_t fixed_len, CK_ULONG kdf, size_t value_len) {
Expand Down

0 comments on commit c1a00f0

Please sign in to comment.