[sr-dev] git:4.4:ab580223: core: more safety checks for getting int values from cfg function params