Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
OP_CHECKBLOCKATHEIGHT anti-replay (BIP 115; logic only) #10391
+210
−77
Conversation
luke-jr
added some commits
May 12, 2017
|
https://github.com/luke-jr/bips/blob/bip-0115/bip-0115.mediawiki - for others reference |
| + } | ||
| + | ||
| + // nHeight is a 32-bit signed integer field. | ||
| + const int32_t nHeight = CScriptNum(stacktop(-1), true, 4).getint(); |
aayanl
Jul 10, 2017
nHeight is a int32_t, if someone makes a transaction with 2147483648 as the referenced block, it would cause an overflow
luke-jr
Jul 10, 2017
Member
Not all overflows are buffer overflows. In this case, CScriptNum explicitly limits the size.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
luke-jr commentedMay 12, 2017
No description provided.