Skip to content

Commit

Permalink
Fix Padding PG SM executor negative remaining length check
Browse files Browse the repository at this point in the history
  • Loading branch information
fractasy committed Oct 14, 2024
1 parent 4076863 commit b1b9c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sm/padding_pg/padding_pg_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void PaddingPGExecutor::execute (vector<PaddingPGExecutorInput> &input, PaddingP
if (!fr.isZero(pols.rem[p]))
{
pols.remInv[p] = glp.inv(pols.rem[p]);
if (fr.toU64(pols.rem[p]) > 0xFFFF) pols.spare[p] = fr.one();
if (fr.toU64(pols.rem[p]) > 0xFFFFFFFF) pols.spare[p] = fr.one();
}

bool lastBlock = (p % bytesPerBlock) == (bytesPerBlock - 1);
Expand Down

0 comments on commit b1b9c8a

Please sign in to comment.