Skip to content

Commit

Permalink
Convert getFromMemory() big length error into warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fractasy committed Sep 19, 2024
1 parent 2a16317 commit dc10a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main_sm/fork_9/main/full_tracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ inline zkresult getFromMemory(Context &ctx, mpz_class &offset, mpz_class &length
// If length is too high this is due to an OOG that will stop processing; just pretend to have read nothing
if (length > ctx.rom.constants.MAX_MEM_EXPANSION_BYTES)
{
zklog.error("getFromMemory() got length=" + length.get_str(10) + " > rom.constants.MAX_MEM_EXPANSION_BYTES=" + to_string(ctx.rom.constants.MAX_MEM_EXPANSION_BYTES));
zklog.warning("getFromMemory() got length=" + length.get_str(10) + " > rom.constants.MAX_MEM_EXPANSION_BYTES=" + to_string(ctx.rom.constants.MAX_MEM_EXPANSION_BYTES));
return ZKR_SUCCESS;
}

Expand Down

0 comments on commit dc10a21

Please sign in to comment.