Skip to content

feat: Add IBCv2 timeout entrypoint #658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2025
Merged

Conversation

kulikthebird
Copy link
Member

No description provided.

@kulikthebird kulikthebird force-pushed the tkulik/feat/ibc_timeout branch from 2ae76bb to 0a1044b Compare April 24, 2025 10:18
@kulikthebird kulikthebird marked this pull request as ready for review April 24, 2025 10:27
@kulikthebird kulikthebird force-pushed the tkulik/feat/ibc_timeout branch from 0a1044b to b793e42 Compare April 24, 2025 10:55
@faddat
Copy link
Contributor

faddat commented Apr 24, 2025

Screenshot 2025-04-24 at 9 03 46 PM

OK, so hear me out.... This would be much better -- it is already good -- if the unmanaged vectors were safer.

https://github.com/CosmWasm/wasmvm/pull/653/files#diff-83a45a0323a4e26989afc9d1de35403eaf1bd854f37f5763c9b73545327d0f7aR71

@kulikthebird kulikthebird requested review from chipshort and jawoznia and removed request for chipshort April 25, 2025 06:21
@kulikthebird kulikthebird force-pushed the tkulik/feat/ibc_timeout branch from 4958b47 to 2fe1347 Compare April 25, 2025 09:44
@@ -164,11 +163,10 @@ func AnalyzeCode(cache Cache, checksum []byte) (*types.AnalysisReport, error) {
requiredCapabilities := string(copyAndDestroyUnmanagedVector(report.required_capabilities))
entrypoints := string(copyAndDestroyUnmanagedVector(report.entrypoints))
entrypoints_array := strings.Split(entrypoints, ",")
hasIBC2EntryPoints := slices.Contains(entrypoints_array, "ibc2_packet_receive")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@kulikthebird
Copy link
Member Author

Screenshot 2025-04-24 at 9 03 46 PM OK, so hear me out.... This would be much better -- it is already good -- if the unmanaged vectors were safer.

https://github.com/CosmWasm/wasmvm/pull/653/files#diff-83a45a0323a4e26989afc9d1de35403eaf1bd854f37f5763c9b73545327d0f7aR71

That's interesting. It's always good to emphasise security and reliability. At the same time it's not in scope of this PR. Definitely something that should be discussed in the second half of the year.

@faddat
Copy link
Contributor

faddat commented Apr 27, 2025

Yeah I'm really sorry for invading this PR with that - except like, I have to disagree with this:

Definitely something that should be discussed in the second half of the year.

The input validation stuff is, in my opinion, and again, my apologies for jumping into this PR, and note I'll gladly delete this after it's seen, um, quite pressing.

Thank you.

@kulikthebird kulikthebird force-pushed the tkulik/feat/ibc_timeout branch from 2fe1347 to 71df726 Compare April 29, 2025 10:46
@kulikthebird kulikthebird merged commit c53c0ba into main Apr 29, 2025
15 checks passed
@kulikthebird kulikthebird deleted the tkulik/feat/ibc_timeout branch April 29, 2025 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants