sysread should not ignore magic on its buffer
authorFather Chrysostomos <sprout@cpan.org>
Thu, 24 Nov 2011 04:26:51 +0000 (20:26 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 24 Nov 2011 09:45:30 +0000 (01:45 -0800)
commite37d6bdb385bdcf32a72bdde366106ee4c503bfe
treee822a49d3102560178721d892a61d7d25a4b0b03
parent9d6d5a7950f47e97191ed3cc7a45cd5b06163193
sysread should not ignore magic on its buffer

sysread uses SvPV_force, which has a bug in it.  Even if the SV_GMAGIC
flag is passed to sv_pvn_force_flags (which SvPV_force does), it
ignores magic in any typeglob argument.
sv.c
t/op/gmagic.t