This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
util.c: Stop ck_index/fbm_compile from abusing readonliness
authorFather Chrysostomos <sprout@cpan.org>
Fri, 21 Jun 2013 21:19:54 +0000 (14:19 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 23 Jun 2013 06:16:40 +0000 (23:16 -0700)
commit66379c06cdfaf5fb5c63d8518f0a1e65d80b1072
tree51a467ec3a39a00bb8094a8d562897cd74cee1fd
parent310f4fdb24138eb4c2139770a79916c15593c66d
util.c: Stop ck_index/fbm_compile from abusing readonliness

There is currently a convenient exception in sv_force_normal that
allows read-only scalars to be modified at compile time.

I want to get rid of it, since most code that relies on it is buggy.

So stop ck_index from relying on that when it calls fbm_compile by
stopping fbm_compile from triggering the error by forcing stringifica-
tion of variables that are already strings.
util.c