https://issues.apache.org/bugzilla/show_bug.cgi?id=54682

--- Comment #5 from Phil Persad <[email protected]> ---
The code:

if (offset < 0 || length < 0)

Fails to account for the very real potential for integer overflow.  The check
for offset + length < 0 is necessary.  I avoided that by casting to long,
however I think the RedHat solution using binary inclusive OR is more elegant.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to