PerlIO_find_layer should not be using memEQ() off the end of the layer name.
authorNicholas Clark <nick@ccl4.org>
Mon, 25 Mar 2013 09:20:05 +0000 (10:20 +0100)
committerNicholas Clark <nick@ccl4.org>
Mon, 25 Mar 2013 16:34:31 +0000 (17:34 +0100)
commitba90859e610c9bec1956b5c7e11f5b4942e3a760
tree47f8e577c8a24861780d912e008ecd94c82fffa5
parent5a04397369a036f9a5c8e299f1a215c2fac4b6c8
PerlIO_find_layer should not be using memEQ() off the end of the layer name.

PerlIO_find_layer was using memEQ() to compare the name of the desired layer
with each layer in the array of known layers. However, it was always using
the length of the desired layer for the comparison, whatever the length of
the name it was comparing it with, resulting in out-of-bounds reads.
perlio.c