Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecureStore: Add missing check for rollback-protection pointer before allocating memory #15513

Merged
merged 1 commit into from
Jun 8, 2024

Commits on May 16, 2024

  1. Added missing check for replay protection pointer before allocating n…

    …ew variable
    
    Problem: If a key with write-once flag is being set in a SecureStore without rollback-protection store (i.e. _rbp_kv == NULL), additional memory will be allocated for the variable _ih->key. The memory will not be deleted, though, as the delete in line 434 only happens if a rollback-protection store exists (i.e. _rbp_kv != NULL)
    
    Solution: Only allocate the memory if _rbp_kv != NULL
    
    Contribution is provided on behalf of BIOTRONIK.
    mattgbio committed May 16, 2024
    Configuration menu
    Copy the full SHA
    5fc4abe View commit details
    Browse the repository at this point in the history