Daohub-io / cap9

Capability-based security protocol for smart contracts
Apache License 2.0
22 stars 10 forks source link

Failure of code_copy #180

Open JakeOShannessy opened 5 years ago

JakeOShannessy commented 5 years ago

There is a strange error occurring when passing the full code data from the kernel (that is using EXTCODECOPY) to a client. I'm not sure what it causing it, but reallocating the vector in some way seems to fix it.

https://github.com/Daohub-io/cap9/blob/9f8aca698f98f13e28f5cd2d0a7a7b37fd88a13a/kernel-ewasm/cap9-kernel/src/lib.rs#L130-L140

JakeOShannessy commented 5 years ago

This is currently working fine with this hack disabled. Given we can't reproduce it anymore we may just have to close it. It may have been fixed with some other changes.