-
Notifications
You must be signed in to change notification settings - Fork 59
validate map/set treap order with $| #1180
Conversation
jtobin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
philipcmonk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! When does the validator get run? Only on clam, or also on cast? Can you take a well-formed map, perturb it maliciously, and cast the result to map?
Approving because regardless of the above question, this is better than what we had.
|
^- and ^+ casting do not clam, so the menace of malicious map misordering remains. At least now the validator will get called on network data though, so you have to be on the inside (e.g. an app) to cause a problem.
—
~rovnys-ricfer
https://urbit.org
…On Wed, May 29 2019 at 10:32 AM, < ***@***.*** > wrote:
***@***.**** approved this pull request.
Nice! When does the validator get run? Only on clam, or also on cast? Can
you take a well-formed map, perturb it maliciously, and cast the result to
map?
Approving because regardless of the above question, this is better than
what we had.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub (
#1180?email_source=notifications&email_token=AAGVR5NWSX3MMSUBB7E2SJ3PX24Z7A5CNFSM4HQJSQG2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB2BCROI#pullrequestreview-243411129
) , or mute the thread (
https://github.com/notifications/unsubscribe-auth/AAGVR5IX4GURMV35VMVLO33PX24Z7ANCNFSM4HQJSQGQ
).
|
|
Right, molds (specs) only exist at compile time. Some more examples: Note also that the validation is applied recursively ( |
|
Makes sense. Is there a reason why we don't verify the vertical ordering of a qeu? |
|
I guess nobody has taken the time to write |
|
(extra 👍 for the tests) |
after:
before:
much before:
#311
I had to move these mold/mold-builder definitions so that the
+inand+bycores are available to them. Note that the section labels are still wrong, although somewhat less so. I think that's out of scope for this PR, as the labels are wrong in many parts of hoon.hoon.