aws / aws/aws-encryption-sdk-c

Test code path for when the KMS client supplier returns NULL

Open
#236 0 comments 0 reactions 0 assignees View on GitHub
maintenance
Dominant language
C
Stars
63
Forks
59
PR merge metrics
No merged PRs in 30d

Description

This branch is not taken in the test suite, and should be tested:

https://github.com/awslabs/aws-encryption-sdk-c/blob/5b77a0a9b7131ffd3f32b6057cf42bfeaf0315b3/aws-encryption-sdk-cpp/source/kms_keyring.cpp#L100-L103

Contributor guide

Open the contributing guide

Research direction

Start with aws-encryption-sdk-cpp/source/kms_keyring.cpp at lines 100-103 and trace the KMS client supplier path. Add coverage for a supplier that returns NULL, then run the relevant test suite and confirm that this branch executes without an unexpected failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
security, testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.