You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wabt currently knows how to parse some custom sections, such as the linking section which are outside of the core spec.
I'd like to add some amount of validation there but its not clear where best to do this. Presumably not in ReadBinaryIr? Would it make sense to add this to ValidateModule? (disabled with the existing --ignore-custom-section-errors option)
The text was updated successfully, but these errors were encountered:
It probably won't work in ValidateModule, since that would require you to read the data into IR first.
I think the way that fits best with the current design would be to create a separate class for validating linking info. It would have a collection of functions that map directly to the callbacks in binary-reader.h. Then anyone who wants to validate that custom section can forward the calls. It's a bit clumsy with the current design, but that would mean you could share validation between wasm2wat and wasm-objdump, for example.
wabt currently knows how to parse some custom sections, such as the linking section which are outside of the core spec.
I'd like to add some amount of validation there but its not clear where best to do this. Presumably not in ReadBinaryIr? Would it make sense to add this to ValidateModule? (disabled with the existing
--ignore-custom-section-errors
option)The text was updated successfully, but these errors were encountered: