Skip to content

Commit 27e8806

Browse files
mnoiyxiaoxial
authored andcommitted
limit the patchsize to 11
1 parent 7e50dab commit 27e8806

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Library/Raisr.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,11 @@ RNLERRORTYPE RNLInit(std::string &modelPath,
12931293
{
12941294
return RNLErrorBadParameter;
12951295
}
1296+
if (gPatchSize != 11)
1297+
{
1298+
std::cout << "[RAISR ERROR] configFile corrupted: " << configPath << std::endl;
1299+
return RNLErrorBadParameter;
1300+
}
12961301
gPatchMargin = gPatchSize >> 1;
12971302
gLoopMargin = (gPatchSize >> 1) + 1;
12981303
gResizeExpand = (gLoopMargin + 2);

0 commit comments

Comments
 (0)