I am currently developing a blockchain parser in Python, and it has been crashing in the file blk00006.dat for the coinbase transaction with the hash
afbff1130b6fcbdceebbadfc48a842af1f03ee08a79e042b37fc467518b49a0f in the block
0000000000000a46714e1b03e5e0693e9ecaa3ec1853f1cdf34e9ca52e13f1ff. The reason it was crashing is because it has an
OP_PUSHDATA2 in the script signature with a value of 28265. However, there are only 21 bytes left to read according to the size of the script.
I fixed my code to avoid crashing in this script, but I am still curious about how this script_signature got accepted by the network.