HomePhabricator

Documented bug in sign-extension behavior of opcodes OP_AND, OP_OR, and OP_XOR.
95d7f002957aUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Documented bug in sign-extension behavior of opcodes OP_AND, OP_OR, and OP_XOR.

Due to a bug in the implementation of MakeSameSize(), using OP_AND, OP_OR, or OP_XOR with signed values of unequal size will result in the sign-value becoming part of the smaller integer, with nonsensical results. This patch documents the unexpected behavior and provides the basis of a solution should decision be made to fix the bug in the future.

Details

Provenance
Mark Friedenbach <mark@monetize.io>Authored on Sep 25 2012, 23:40
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING1381ad2b2173: Merge pull request #1684 from jgarzik/bootstrap
Branches
Unknown
Tags
Unknown

Event Timeline