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::HashId - Handle hash element for configuration model

SYNOPSIS

$model ->create_config_class 
 (
  ...
  element 
  => [ 
      bounded_hash 
      => { type => 'hash',
           index_type  => 'integer',
           min => 1, 
           max => 123, 
           max_nb => 2 ,
           cargo_type => 'leaf',
           cargo_args => {value_type => 'string'},
         },
     ]
 ) ;

DESCRIPTION

This class provides hash elements for a Config::Model::Node.

The hash index can either be en enumerated type, a boolean, an integer or a string.

CONSTRUCTOR

HashId object should not be created directly.

Hash model declaration

See model declaration section from Config::Model::AnyId.

Methods

get_type

Returns hash.

fetch_size

Returns the nb of elements of the hash.

firstkey

Returns the first key of the hash. Behaves like each core perl function.

firstkey

Returns the next key of the hash. Behaves like each core perl function.

AUTHOR

Dominique Dumont, domi@komarr.grenoble.hp.com

SEE ALSO

Config::Model::Model, Config::Model::Instance, Config::Model::AnyId, Config::Model::ListId, Config::Model::Value