Closed alexcrichton closed 1 year ago
Pretty sure that's a typo, limits are 64-bit independently of the other 2 flags, and that's how it is implemented so far in the tools.
Care to make a PR?
@rossberg
Ok makes sense and that's what I figured, just wanted to confirm! I'll send a PR to update the overview tomorrow
Yes, that looks like a C&P error.
I was fuzzing a WASM parser I made, and found that the current overview still has the typo. Maybe someone can merge the changes into main
?
That is strange. I have no clue why that PR was closed rather than merged..
I was reading over the spec again today and noticed that the binary encoding for limits for memories is specified as:
It seems like the interpretation seems to be for the leading flags byte:
This doesn't quite align with the table, though, specifically the last two cases:
these are currently specified as a 32-bit specification of the min/max sizes instead of what I was naively expecting as a 64-bit specification.
Is this intentional? (or perhaps a typo?) If this is intentional, could a few words be added as to why shared memories don't get 64-bit limits just yet (I'm not sure myself, mostly just curious!)