awslabs / aws-c-auth

C99 library implementation of AWS client-side authentication: standard credentials providers and signing.
Apache License 2.0
40 stars 30 forks source link

Fix Empty Env varibales for STSWebIdentity #246

Closed waahm7 closed 1 month ago

waahm7 commented 1 month ago

The pointer is a dangling pointer after we have destroyed it which can lead to accessing garbage memory or double free errors.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.44%. Comparing base (300ae82) to head (7789cae).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #246 +/- ## ========================================== + Coverage 80.38% 80.44% +0.05% ========================================== Files 33 33 Lines 6037 6038 +1 ========================================== + Hits 4853 4857 +4 + Misses 1184 1181 -3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.