Skip to content

Fix two memory leaks in hashing to a curve element#200

Merged
jakinyele merged 1 commit intoJHUISI:devfrom
timothymctim:fix-mem-leak-1
Feb 18, 2019
Merged

Fix two memory leaks in hashing to a curve element#200
jakinyele merged 1 commit intoJHUISI:devfrom
timothymctim:fix-mem-leak-1

Conversation

@timothymctim
Copy link
Copy Markdown
Contributor

Fixes two memory leaks:

  • x = BN_bin2bn((const uint8_t *) input, input_len, NULL); -> BN_bin2bn((const uint8_t *) input, input_len, x);
  • hashObj = createNewPoint(G, gobj); already created a new ECElement P

Also changed: conditionally compile debug statements.

@jakinyele jakinyele merged commit 4599670 into JHUISI:dev Feb 18, 2019
@timothymctim timothymctim deleted the fix-mem-leak-1 branch February 18, 2019 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants