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

[LevelDB IndexedDB] Check object property name type, and read dense arrays until end token #1801

Conversation

RebeccaMahany
Copy link
Contributor

I noticed that some logs report a current property name "". It's not valid to have an empty string as an object property name, so I added a check for current property name type with a descriptive error message to further investigate this issue.

While making this fix, I uncovered a bug with reading dense arrays, where we stopped reading before reaching the metadata at the end of the array. Now, we read all the metadata so that we can properly parse the next object item.

@RebeccaMahany RebeccaMahany added this pull request to the merge queue Jul 26, 2024
Merged via the queue into kolide:main with commit 1495da5 Jul 26, 2024
30 checks passed
@RebeccaMahany RebeccaMahany deleted the becca/indexeddb-zero-len-obj-property-names branch July 26, 2024 16:35
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