Bug 1054023 - Fix final buffered range calculation; r=edwin