We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e2d938 commit dc553d1Copy full SHA for dc553d1
wolfcrypt/src/port/intel/quickassist.c
@@ -557,6 +557,12 @@ int IntelQaOpen(WC_ASYNC_DEV* dev, int devId)
557
return ASYNC_INIT_E;
558
}
559
560
+ if (devId >= g_numInstances) {
561
+ fprintf(stderr, "IntelQA: devId %d exceeds number of instances %u\n",
562
+ devId, g_numInstances);
563
+ return NO_VALID_DEVID;
564
+ }
565
+
566
dev->qat.devId = devId;
567
dev->qat.handle = g_cyInstances[devId];
568
0 commit comments