Skip to content

Conversation

practicalswift
Copy link
Contributor

@practicalswift practicalswift commented Sep 13, 2019

Avoid heap out-of-bounds read in Node::CalcOps (test case: OP_0 OP_2 OP_EQUAL) and assertion failure in ComputeType (test case: OP_0 OP_0 OP_EQUAL).

@practicalswift practicalswift changed the title Avoid heap out-of-bounds read (test case: OP_0 OP_2 OP_EQUAL) and assertion failure (test case: OP_0 OP_0 OP_EQUAL) in Node::CalcOps Avoid heap out-of-bounds read in Node::CalcOps (test case: OP_0 OP_2 OP_EQUAL) and assertion failure in ComputeType (test case: OP_0 OP_0 OP_EQUAL) Sep 13, 2019
…OP_EQUAL) and assertion failure in ComputeType (test case: OP_0 OP_0 OP_EQUAL)

Closes #12.

Closes #13.
@practicalswift
Copy link
Contributor Author

@sipa Looks good? :)

@sipa
Copy link
Owner

sipa commented Sep 18, 2020

@sanket1729 Want to have a look? This may interact with #39 .

@sanket1729
Copy link
Contributor

I think we can merge this as it is and then I can address issue for changing thresholds (1<k<n to 1<=k<=n) in a separate PR while parsing and all other places in the repository.

@practicalswift
Copy link
Contributor Author

Now that 1.5 years have passed I've largely forgotten the context of these changes, so I think it would be better for someone else with fresh knowledge of the code base to take over the task of fixing this issue :)

Anyone who want to take over this PR if I close it as "up for grabs"?

@practicalswift
Copy link
Contributor Author

The work on addressing this issue has been taken over at @sanket1729 in PR #57. Closing this PR.

Thanks @sanket1729!

sipa added a commit that referenced this pull request Aug 19, 2021
… OP_0 OP_2 OP_EQUAL) and assertion failure in ComputeType (test case: OP_0 OP_0 OP_EQUAL)

a47dcc6 Add assertions: Raise assertion failure instead of doing an out-of-bounds read in case of k > sats.size() (sanket1729)
0d43166 Avoid heap out-of-bounds read in Node::CalcOps (test case: OP_0 OP_2 OP_EQUAL) and assertion failure in ComputeType (test case: OP_0 OP_0 OP_EQUAL) (practicalswift)

Pull request description:

  Closes #12.

  Closes #13.

  Supercedes #18

ACKs for top commit:
  sipa:
    utACK a47dcc6
  darosior:
    ACK a47dcc6
  meshcollider:
    utACK a47dcc6

Tree-SHA512: 85ea2f791e5b6a2c80dee567895dffe386f5fe4973b97dd7102b91f2e500bf9087dcbaeafe9e635abc02b27a97918bc69ae38b6769d93f2b3a071eb976a606c8
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.

3 participants