Revision a5ccbced8c1d6f41e5287269294642f32e445976 authored by madianjun on 06 December 2019, 07:39:49 UTC, committed by Dongjoon Hyun on 06 December 2019, 07:39:49 UTC
### What changes were proposed in this pull request?

A bug fixed about the code in getBlockHosts() function. In the case "The fragment ends at a position within this block", the end of fragment should be before the end of block,where the "end of block" means `b.getOffset + b.getLength`,not `b.getLength`.

### Why are the changes needed?

When comparing the fragment end and the block end,we should use fragment's `offset + length`,and then compare to the block's `b.getOffset + b.getLength`, not the block's length.

### Does this PR introduce any user-facing change?

No.

### How was this patch tested?
No test.

Closes #26650 from mdianjun/fix-getBlockHosts.

Authored-by: madianjun <madianjun@jd.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
1 parent da27f91
History
File Mode Size
pkg
.gitignore -rw-r--r-- 66 bytes
CRAN_RELEASE.md -rw-r--r-- 3.9 KB
DOCUMENTATION.md -rw-r--r-- 1.2 KB
README.md -rw-r--r-- 3.3 KB
WINDOWS.md -rw-r--r-- 3.5 KB
check-cran.sh -rwxr-xr-x 2.6 KB
create-docs.sh -rwxr-xr-x 1.8 KB
create-rd.sh -rwxr-xr-x 1.5 KB
find-r.sh -rwxr-xr-x 1.2 KB
install-dev.bat -rw-r--r-- 1.1 KB
install-dev.sh -rwxr-xr-x 1.6 KB
install-source-package.sh -rwxr-xr-x 2.0 KB
log4j.properties -rw-r--r-- 1.3 KB
run-tests.sh -rwxr-xr-x 2.7 KB

README.md

back to top