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
{{ message }}
This repository has been archived by the owner on Jul 15, 2018. It is now read-only.
Notice that even if err != nil we took the address of the named return value so set some stuff in it.
The problem though is that if we try to parse a key with invalid bytes and that fails, later on test pubKey.Empty() will return false which is wrong.
This behavior skewed my fuzzing tests and here is a simple repro
The current implementation of PubKeyFromBytes could be improved. It currently is
go-crypto/pub_key.go
Lines 16 to 19 in dd20358
Notice that even if
err != nil
we took the address of the named return value so set some stuff in it.The problem though is that if we try to parse a key with invalid bytes and that fails, later on test
pubKey.Empty()
will return false which is wrong.This behavior skewed my fuzzing tests and here is a simple repro
which gives
yet it should actually give
The text was updated successfully, but these errors were encountered: