Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

segfault #151

Closed
kazu-yamamoto opened this issue Apr 11, 2017 · 2 comments · Fixed by #152
Closed

segfault #151

kazu-yamamoto opened this issue Apr 11, 2017 · 2 comments · Fixed by #152

Comments

@kazu-yamamoto
Copy link
Contributor

The following code causes segfault: https://gist.github.com/kazu-yamamoto/25b7b4ee7884e30a93355e20f5efe0ac

It seems to me that getRandomBytes causes segufault.

Relating to: haskell-tls/hs-tls#205

@ocheron
Copy link
Contributor

ocheron commented Apr 11, 2017

That's because withTempPoint uses scalarSize instead of pointSize.

@kazu-yamamoto
Copy link
Contributor Author

Cool!

I will send a PR to fix this.

kazu-yamamoto added a commit to kazu-yamamoto/crypton that referenced this issue Apr 11, 2017
ocheron added a commit that referenced this issue Apr 11, 2017
using pointSize in withTempPoint to fix #151.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants