From: zuul Date: Fri, 14 Oct 2016 22:17:12 +0000 (-0500) Subject: Merge "Audit ast_json_pack() calls for needed UTF-8 checks." into 13 X-Git-Tag: 13.12.0-rc1~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3bdd7c0e38f41fbfacec2796be0d90cbd714856f;p=thirdparty%2Fasterisk.git Merge "Audit ast_json_pack() calls for needed UTF-8 checks." into 13 --- 3bdd7c0e38f41fbfacec2796be0d90cbd714856f diff --cc main/aoc.c index 258525e654,6c518765cf..ba151d7606 --- a/main/aoc.c +++ b/main/aoc.c @@@ -1691,12 -1694,12 +1693,11 @@@ static struct ast_json *association_to_ { switch (decoded->charging_association.charging_type) { case AST_AOC_CHARGING_ASSOCIATION_NUMBER: - return ast_json_pack( - "{s:s, s:i}", - "Number", decoded->charging_association.charge.number.number, + return ast_json_pack("{s:s, s:i}", + "Number", AST_JSON_UTF8_VALIDATE(decoded->charging_association.charge.number.number), "Plan", decoded->charging_association.charge.number.plan); case AST_AOC_CHARGING_ASSOCIATION_ID: - return ast_json_pack( - "{s:i}", "ID", decoded->charging_association.charge.id); + return ast_json_pack("{s:i}", "ID", decoded->charging_association.charge.id); case AST_AOC_CHARGING_ASSOCIATION_NA: default: return ast_json_null();