bitcoin/bitcoin — pull request #5247 by sipa (2014-11-08 22:05:46+00:00)
Title: Make STRICTENC invalid pubkeys fail the script rather than the opcode.

As suggested on the mailinglist:

This turns STRICTENC turn into a softforking change, and as a result guarantee that using it for mempool validation only results in consensus-valid transactions in the mempool.

Suggested by @petertodd.