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

fix(cli): account for getRecord's trimming #574

Merged
merged 1 commit into from
Apr 2, 2023

Conversation

dk1a
Copy link
Contributor

@dk1a dk1a commented Apr 2, 2023

fixes #560
replaces #564

the gist of the issue was: in getRecord when dynamic fields are empty, Store trims their 32-byte length word, so the blob is only static data.
tablegen didn't account for the trimming, and Slice's sanity check detected the invalid subslice [64:64] on a blob of length 32
(an empty subslice is fine, what's invalid is that the indexes exceed the length)

@dk1a dk1a requested review from alvrs and holic as code owners April 2, 2023 04:33
@holic
Copy link
Member

holic commented Apr 2, 2023

does this replace the updated autogen'ed files in #564?

@dk1a
Copy link
Contributor Author

dk1a commented Apr 2, 2023

does this replace the updated autogen'ed files in #564?

yes, forgot to mention, this does make #564 unnecessary

@holic holic merged commit 9c5317a into main Apr 2, 2023
@dk1a dk1a deleted the dk1a/fix-tablegen-trimmed-getRecord branch May 9, 2023 16:23
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.

Store.get() on a non-existent record where schema has an array fails
2 participants