This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 139
segfault in blake2_update #193
Comments
domenkozar
added a commit
to input-output-hk/cardano-sl
that referenced
this issue
Oct 1, 2017
See upstream issue at haskell-crypto/cryptonite#193
domenkozar
added a commit
to input-output-hk/cardano-sl
that referenced
this issue
Oct 1, 2017
See upstream issue at haskell-crypto/cryptonite#193
domenkozar
added a commit
to input-output-hk/cardano-sl
that referenced
this issue
Oct 1, 2017
See upstream issue at haskell-crypto/cryptonite#193
I'd like to understand this. On the face of it, it's deeply suspicious. If the thing can be moved during the FFI call, it can be moved before or after too. It's not a ByteArray# being passed to the FFI call. The |
domenkozar
added a commit
to input-output-hk/cardano-sl
that referenced
this issue
Oct 1, 2017
See upstream issue at haskell-crypto/cryptonite#193
domenkozar
added a commit
to input-output-hk/cardano-sl
that referenced
this issue
Oct 1, 2017
See upstream issue at haskell-crypto/cryptonite#193
Note that the segfault appears to be being raised in a part of libc where the actual code sequences are processor capability dependent. |
domenkozar
added a commit
to input-output-hk/cardano-sl
that referenced
this issue
Oct 1, 2017
See upstream issue at haskell-crypto/cryptonite#193
From the coredump I had direct access to, we've entered a code path that shouldn't exist of trying to copy > 0x80 bytes with memcpy when we should by design only copy <= 0x80 bytes. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We found a segfault in
blake2_update
function and @vincenthz provided a workaround patch:The text was updated successfully, but these errors were encountered: