Honor lengths in merged named-data keys (#22977) - #22977
estervojko wants to merge 1 commit into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/22977
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit ff5c413 with merge base ed72896 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
|
|
@estervojko has exported this pull request. If you are a Meta employee, you can view the originating Diff in D119537721. |
rascani
left a comment
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
This PR needs a
|
Summary: `NamedDataMap` keys are `string_view` values and are not required to be null terminated. Make merged-map lookup and logging honor the explicit key length, and fix an existing test comparison that compared a buffer with itself. Add coverage using a valid key followed by unrelated bytes. Reviewed By: rascani Differential Revision: D119537721
d30d39a to
c180987
Compare
c180987 to
def8478
Compare
def8478 to
4774aa0
Compare
Summary: `NamedDataMap` keys are `string_view` values and are not required to be null terminated. Make merged-map lookup and logging honor the explicit key length, and fix an existing test comparison that compared a buffer with itself. Add coverage using a valid key followed by unrelated bytes. Reviewed By: rascani Differential Revision: D119537721
4774aa0 to
ff5c413
Compare
Summary:
NamedDataMapkeys arestring_viewvalues and are not required to be null terminated. Make merged-map lookup and logging honor the explicit key length, and fix an existing test comparison that compared a buffer with itself. Add coverage using a valid key followed by unrelated bytes.Reviewed By: rascani
Differential Revision: D119537721