You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it ok that an inconsistently setup HAMT will cause a panic?
The pointer returned here is dereferenced without nil checking.
An inconsistent setup is actually checked earlier within the method returning the pointer here but it silently passes nil just deferring the panic to the caller.
It seems like this method should return an error or else own the decision to panic when in a bad state and not check the index against the length of the Pointers array.
The text was updated successfully, but these errors were encountered:
Is it ok that an inconsistently setup HAMT will cause a panic?
The pointer returned here is dereferenced without nil checking.
An inconsistent setup is actually checked earlier within the method returning the pointer here but it silently passes nil just deferring the panic to the caller.
It seems like this method should return an error or else own the decision to panic when in a bad state and not check the index against the length of the
Pointers
array.The text was updated successfully, but these errors were encountered: