Skip to content

Commit

Permalink
fix msan-findings in libfuzzer and ikev2_pld_notify()
Browse files Browse the repository at this point in the history
  • Loading branch information
linderd committed Dec 5, 2023
1 parent cabc947 commit c848d07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iked/ikev2_pld.c
Original file line number Diff line number Diff line change
Expand Up @@ -1049,8 +1049,8 @@ ikev2_pld_notify(struct iked *env, struct ikev2_payload *pld,
struct ikev2_notify n;
const struct iked_sa *sa = msg->msg_sa;
uint8_t *buf, md[SHA_DIGEST_LENGTH];
uint32_t spi32;
uint64_t spi64;
uint32_t spi32 = 0;
uint64_t spi64 = 0;
struct iked_spi *rekey;
uint16_t type;
uint16_t signature_hash;
Expand Down
1 change: 1 addition & 0 deletions regress/parser-libfuzzer/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ ssize_t
ikev2_nat_detection(struct iked *env, struct iked_message *msg,
void *ptr, size_t len, u_int type, int frompeer)
{
bzero(ptr, len);
return (0);
}

Expand Down

0 comments on commit c848d07

Please sign in to comment.