Skip to content

Commit

Permalink
fix fuzz bug
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Apr 21, 2024
1 parent 911f0e5 commit e0f68c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libstellar/printer.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ bool encode_ed25519_signed_payload(const ed25519_signed_payload_t *signed_payloa
}

bool encode_muxed_account(const muxed_account_t *raw_muxed_account, char *out, size_t out_len) {
if (raw_muxed_account == NULL || raw_muxed_account->med25519.ed25519 == NULL ||
out_len < ENCODED_MUXED_ACCOUNT_KEY_LENGTH) {
if (raw_muxed_account == NULL) {
return false;

Check warning on line 106 in libstellar/printer.c

View check run for this annotation

Codecov / codecov/patch

libstellar/printer.c#L106

Added line #L106 was not covered by tests
}
if (raw_muxed_account->type == KEY_TYPE_ED25519) {
Expand Down

0 comments on commit e0f68c1

Please sign in to comment.