-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersmediumEffort labelEffort label
Description
Pkcs11::get_slots_with_token, Pkcs11::get_all_slots and Pkcs11::get_mechanism_list currently truncate returned lists to account for changed sizes between querying the size and getting the list, a typical race condition.
There are two problems with this currently:
Vec::resizeis used instead ofVec::truncateforPkcs11::get_slots_with_tokenandPkcs11::get_all_slots- Lists can also increase in size, which returns an error, it might be better to put it in a
loopuntil the correct size is established
hug-dev
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersmediumEffort labelEffort label