Skip to content
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

Deserialize plugin's serialized bytes with bytechecked #7461

Open
kwonoj opened this issue May 29, 2023 · 0 comments
Open

Deserialize plugin's serialized bytes with bytechecked #7461

kwonoj opened this issue May 29, 2023 · 0 comments

Comments

@kwonoj
Copy link
Member

kwonoj commented May 29, 2023

Describe the feature

Ref: #7460

Currently we deserialize bytes coming from plugin with unsafe, non-bytechecked way even though we (partially) enabled bytecheck against the struct. We should use bytechecked, safe interface instead - however there is a blocker to enable those since fully bytechecked deserialization currently fails compilation of swc with

error[E0275]: overflow evaluating the requirement `swc_ecma_ast::stmt::ArchivedBlockStmt: bytecheck::CheckBytes<rkyv::validation::validators::DefaultValidator<'_>>`

error[E0275]: overflow evaluating the requirement `ArchivedComponentValue: bytecheck::CheckBytes<rkyv::validation::validators::DefaultValidator<'_>>`

Babel plugin or link to the feature description

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants