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. ✅ No FailuresAs of commit c180987 with merge base dd8297a ( 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
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