Description[NaCl SDK] nacl_io: Fix bug in Path::Range introduced in recent change.
Path("foo/bar") has 2 components "foo" and "bar". It is legal when calling
Path::Range to access an invalid component (e.g. Path("foo/bar").Range(2, 2).
In this case, the previous STL-based implementation would return "", but my
non-STL implementation was incorrectly returning "foo/bar".
BUG=none
R=sbc@chromium.org
Committed: https://crrev.com/def60c001d10a9d70b7b8b4d8f8143a88bad81f5
Cr-Commit-Position: refs/heads/master@{#322035}
Patch Set 1 #Patch Set 2 : remove unnecessary test #Patch Set 3 : add additional tests for values completely outside the range #
Messages
Total messages: 8 (2 generated)
|