mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Softer fail
This commit is contained in:
parent
8a63a7ed80
commit
10f47cdc8a
1 changed files with 6 additions and 0 deletions
|
@ -4821,6 +4821,12 @@ uint8* COFF::CvReadStream(int streamIdx, int* outSize)
|
|||
if (streamIdx >= mCvStreamSizes.size())
|
||||
return NULL;
|
||||
|
||||
if ((streamIdx < 0) || (streamIdx >= mCvStreamSizes.mSize))
|
||||
{
|
||||
Fail(StrFormat("Invalid PDB stream index: %d", streamIdx));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int streamSize = mCvStreamSizes[streamIdx];
|
||||
if (outSize != NULL)
|
||||
*outSize = streamSize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue