Open ire-and-curses opened 5 years ago
This looks like it belongs in https://github.com/stellar/go-xdr
?
You both are right. It looks like xdrmaxsize
tag is only checked while decoding. And it belongs to go-xdr
.
@tomquisel can you transfer this issue using "Transfer issue" feature? It's only available for admins. Has to be moved to stellar/go-xdr
.
@bartekn done! Issues were disabled for go-xdr
, so I couldn't transfer this issue either at first. Issues are now enabled so it worked 😄
Fields like
xdr.SetOptionsOp.HomeDomain
have restrictions on size, but at run-time nothing prevents them from being set too large, which causestransaction_malformed
errors.It looks like the XDR library has defined sizes which can be checked (e.g. this one for
homeDomain
strings). They just need to be checked.@bartekn Does that sound right to you?