Skip to content

Commit 5db9c1a

Browse files
mnoiyxiaoxial
authored andcommitted
modify limitation of hashkeysize
1 parent f7eec63 commit 5db9c1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Library/Raisr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static RNLERRORTYPE ReadTrainedData(std::string hashtablePath, std::string QStrP
278278
while (getline(filterFile, line))
279279
{
280280
// too much lines in the file
281-
if (num > (hashkeySize * pixelTypes))
281+
if (num >= (hashkeySize * pixelTypes))
282282
{
283283
std::cout << "[RAISR ERROR] hashtable corrupted: " << hashtablePath << std::endl;
284284
return RNLErrorBadParameter;

0 commit comments

Comments
 (0)