Security Advisories (3)
CVE-2017-0373 (2017-05-10)

The gen_class_pod implementation in lib/Config/Model/Utils/GenClassPod.pm in Config-Model (aka libconfig-model-perl) before 2.102 has a dangerous "use lib" line, which allows remote attackers to have an unspecified impact via a crafted Debian package file.

CPANSA-Config-Model-2017-01 (2017-05-10)

YAML or YAML::XS can be loaded automatically making it possible to run arbitrary code loading a specially crafted YAML file.

CVE-2017-0374 (2017-05-10)

Loads models from a local directory, making it possible to substitute the model.

NAME

Config::Model::Role::ComputeFunction - compute &index or &element functions

VERSION

version 2.100

SYNOPSIS

$value->eval_function('index');
$value->eval_function('element');

$value->eval_function('index','-');
$value->eval_function('index','- -');
$value->eval_function('index','-3');

$value->compute_string('&element(-)')
$value->compute_string('&index(- -)');

DESCRIPTION

Role used to let a value object get the index or the element name of $self or of a node above.

METHODS

eval_function

Retrieve the index or the element name. Parameters are

( function_name , [ up  ])
function_name

element or index

up

Optional parameter to indicate how many level to go up before retrieving the index or element name. Each - is equivalent to a call to parent|Config::Model::Node/parent. Can be repeated dashes ("-", "- -", ...) or a dash with a multiplier ("-", "-2", ...). White spaces are ignored.

compute_string

Perform a similar function as eval_function using a string where function names are extracted.

E.g. compute_string('&element(-)') calls eval_function('element','-')

AUTHOR

Dominique Dumont

COPYRIGHT AND LICENSE

This software is Copyright (c) 2005-2017 by Dominique Dumont.

This is free software, licensed under:

The GNU Lesser General Public License, Version 2.1, February 1999