You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (_args.opwrite.offset.value + _args.opwrite.data.remaining() > 0x3ffffffe) { throw new InvalException("Arbitrary value"); }
Which seems to prevent any write from succeeding where the offset + the size is greater than around 1GB. Why does this limit exist? What is the meaning of the "Arbitrary value" exception thrown in this instance?
The text was updated successfully, but these errors were encountered:
Motivation:
WRITE must check that provided offset + length don't overflow supported
MAX_FILESIZE. The current code checks for some arbitrary value, which
is obviously wrong.
Modification:
update offset4 with more checks for overflow. Fix offset+len check on
WRITE.
Result:
fixed incorrect behavior.
Fixes: #40
Acked-by: Paul Millar
Target: master, 0.13
(cherry picked from commit 0addfd7)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
OperationWRITE contains this code:
if (_args.opwrite.offset.value + _args.opwrite.data.remaining() > 0x3ffffffe) { throw new InvalException("Arbitrary value"); }
Which seems to prevent any write from succeeding where the offset + the size is greater than around 1GB. Why does this limit exist? What is the meaning of the "Arbitrary value" exception thrown in this instance?
The text was updated successfully, but these errors were encountered: