In said module (Data::Roundtrip) I have one instance of feeding YAML::PP with a string. As per your suggestion I am now untainting the string thusly:
sub yaml2perl { my $yaml_string = $_[0]; ... ($yaml_string) = each %{{$yaml_string,0}}; my $pv = eval { YAML::PP::Load($yaml_string) }; ... return $pv }
I was previously using YAML but it failed for an (extremely) corner case with a quotes-inside-quotes string. And so I went for YAML::PP as I did not want to use YAML::XS out of concern for users in not dev-friendly environments. YAML::PP does not have a problem with aforementioned corner case.
I had another choice of restricting use of Data::Roundtrip for Perls >= 5.14. But I keep this as last resort.
Any opinions welcome.
Thank Haarg again for looking into this, bw, bliako
In reply to Re^2: Increase verbosity of "make test"
by bliako
in thread Increase verbosity of "make test"
by bliako
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |