Skip to content

Commit cae5c71

Browse files
committed
oberthur: Handle 1B OIDs
Thanks oss-fuzz https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32807
1 parent 4b3c6de commit cae5c71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/libopensc/pkcs15-oberthur.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ sc_pkcs15emu_oberthur_add_data(struct sc_pkcs15_card *p15card,
973973
free(info_blob);
974974
LOG_TEST_RET(ctx, SC_ERROR_UNKNOWN_DATA_RECEIVED, "Invalid length of 'oid' received");
975975
}
976-
if (oid_len) {
976+
if (oid_len > 2) {
977977
oid = info_blob + offs + 2;
978978
if (*oid != 0x06 || (*(oid + 1) != oid_len - 2)) {
979979
free(info_blob);

0 commit comments

Comments
 (0)