lib/nbt: Lists and compounds can be constructed with vectors of invalid data #60
Labels
No Label
Bug
Build Problems
Discussion
Distribution
Enhancement
Far Future
Fix Later
TODO
WONTFIX
Workflow
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: BodgeMaster/FOSS-VG#60
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
¯\_(°_°)_/¯
Can probably be fixed by checking the type on all contained elements and setting the contained type to invalid when multiple types are found.This will probably require the affected constructors to be made private and replaced with static
ErrorOr<List>
andErrorOr<Compound>
functions.lib/nbt: List can be constructed with a vector of mixed tagsto lib/nbt: Lists and compounds can be constructed with vectors of invalid dataList done. An additional unit test for trying to construct a list from mixed tags is needed.
Compound done.
Unit tests still needed.