Skip to content

Commit

Permalink
oberthur: Handle 1B OIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakuje committed Apr 13, 2021
1 parent 4b3c6de commit cae5c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libopensc/pkcs15-oberthur.c
Expand Up @@ -973,7 +973,7 @@ sc_pkcs15emu_oberthur_add_data(struct sc_pkcs15_card *p15card,
free(info_blob);
LOG_TEST_RET(ctx, SC_ERROR_UNKNOWN_DATA_RECEIVED, "Invalid length of 'oid' received");
}
if (oid_len) {
if (oid_len > 2) {
oid = info_blob + offs + 2;
if (*oid != 0x06 || (*(oid + 1) != oid_len - 2)) {
free(info_blob);
Expand Down

0 comments on commit cae5c71

Please sign in to comment.