lib/nbt: NBT::validateRawList() cannot be used for recursion #53

Closed
opened 2022-09-10 09:35:14 +02:00 by BodgeMaster · 1 comment

This is the cause of my issues with validating nested lists.

This is the cause of my issues with validating nested lists.
BodgeMaster added this to the NBT milestone 2022-09-10 09:35:14 +02:00
BodgeMaster added the
Bug
label 2022-09-10 09:35:14 +02:00
BodgeMaster self-assigned this 2022-09-10 09:35:14 +02:00

Forgot to add the reason: This is due to the function assuming that the list it is trying to validate has a name.

A quick and dirty fix would be adding a parameter bool skipName.
Another possibility is moving the name processing outside of the list validator and renaming the function to something like validateListBody().

Forgot to add the reason: This is due to the function assuming that the list it is trying to validate has a name. A quick and dirty fix would be adding a parameter `bool skipName`. Another possibility is moving the name processing outside of the list validator and renaming the function to something like `validateListBody()`.
Sign in to join this conversation.
There is no content yet.