Home
last modified time | relevance | path

Searched refs:patterns_pcre (Results 1 – 10 of 10) sorted by relevance

/dports/net/libyang/libyang-1.0.240/tests/schema/
H A Dtest_typedef.c1160 assert_ptr_not_equal(mod->tpdf[0].type.info.str.patterns_pcre, NULL); in test_typedef_patterns_optimizations_schema()
1176 assert_ptr_not_equal(grp->tpdf[0].type.info.str.patterns_pcre, NULL); in test_typedef_patterns_optimizations_schema()
1190 assert_ptr_equal(leaf->type.info.str.patterns_pcre, NULL); in test_typedef_patterns_optimizations_schema()
1205 assert_ptr_not_equal(leaf->type.info.str.patterns_pcre, NULL); in test_typedef_patterns_optimizations_schema()
/dports/devel/cppcheck/cppcheck-2.6.3/test/bug-hunting/cve/CVE-2019-19334/
H A Dparser.c623 if (!type->info.str.patterns_pcre && type->info.str.pat_count) { in validate_pattern()
624 …type->info.str.patterns_pcre = malloc(2 * type->info.str.pat_count * sizeof *type->info.str.patter… in validate_pattern()
625 LY_CHECK_ERR_RETURN(!type->info.str.patterns_pcre, LOGMEM(ctx), -1); in validate_pattern()
629 (pcre**)&type->info.str.patterns_pcre[i * 2], in validate_pattern()
630 (pcre_extra**)&type->info.str.patterns_pcre[i * 2 + 1])) { in validate_pattern()
639 …rc = pcre_exec((pcre *)type->info.str.patterns_pcre[2 * i], (pcre_extra *)type->info.str.patterns_… in validate_pattern()
/dports/devel/cppcheck-gui/cppcheck-2.6.3/test/bug-hunting/cve/CVE-2019-19334/
H A Dparser.c623 if (!type->info.str.patterns_pcre && type->info.str.pat_count) { in validate_pattern()
624 …type->info.str.patterns_pcre = malloc(2 * type->info.str.pat_count * sizeof *type->info.str.patter… in validate_pattern()
625 LY_CHECK_ERR_RETURN(!type->info.str.patterns_pcre, LOGMEM(ctx), -1); in validate_pattern()
629 (pcre**)&type->info.str.patterns_pcre[i * 2], in validate_pattern()
630 (pcre_extra**)&type->info.str.patterns_pcre[i * 2 + 1])) { in validate_pattern()
639 …rc = pcre_exec((pcre *)type->info.str.patterns_pcre[2 * i], (pcre_extra *)type->info.str.patterns_… in validate_pattern()
/dports/net/libyang/libyang-1.0.240/src/
H A Dparser.c629 if (!type->info.str.patterns_pcre && type->info.str.pat_count) { in validate_pattern()
630 …type->info.str.patterns_pcre = malloc(2 * type->info.str.pat_count * sizeof *type->info.str.patter… in validate_pattern()
631 LY_CHECK_ERR_RETURN(!type->info.str.patterns_pcre, LOGMEM(ctx), -1); in validate_pattern()
635 (pcre**)&type->info.str.patterns_pcre[i * 2], in validate_pattern()
636 (pcre_extra**)&type->info.str.patterns_pcre[i * 2 + 1])) { in validate_pattern()
645 …rc = pcre_exec((pcre *)type->info.str.patterns_pcre[2 * i], (pcre_extra *)type->info.str.patterns_… in validate_pattern()
H A Dtree_schema.c1828 …new->info.str.patterns_pcre = malloc(new->info.str.pat_count * 2 * sizeof *new->info.str.patterns_… in type_dup()
1829 LY_CHECK_ERR_RETURN(!new->info.str.patterns_pcre, LOGMEM(mod->ctx), -1); in type_dup()
1832 (pcre**)&new->info.str.patterns_pcre[2 * u], in type_dup()
1833 … (pcre_extra**)&new->info.str.patterns_pcre[2 * u + 1])) { in type_dup()
1834 free(new->info.str.patterns_pcre); in type_dup()
1835 new->info.str.patterns_pcre = NULL; in type_dup()
2372 if (type->info.str.patterns_pcre) { in lys_type_free()
2373 pcre_free((pcre*)type->info.str.patterns_pcre[2 * i]); in lys_type_free()
2374 pcre_free_study((pcre_extra*)type->info.str.patterns_pcre[2 * i + 1]); in lys_type_free()
2380 free(type->info.str.patterns_pcre); in lys_type_free()
H A Dparser_yang_bis.c4269 …tx->models.flags & LY_CTX_TRUSTED) && ((struct yang_type *)actual)->type->info.str.patterns_pcre) { in yyparse()
4270 … tmp = realloc(((struct yang_type *)actual)->type->info.str.patterns_pcre, in yyparse()
4271 …l)->type->info.str.pat_count * sizeof *((struct yang_type *)actual)->type->info.str.patterns_pcre); in yyparse()
4276 … ((struct yang_type *)actual)->type->info.str.patterns_pcre = tmp; in yyparse()
4484 …((struct yang_type *)(yyvsp[-2].backup_token).actual)->type->info.str.patterns_pcre, c, "patterns"… in yyparse()
4486 …((struct yang_type *)(yyvsp[-2].backup_token).actual)->type->info.str.patterns_pcre, c, "patterns"… in yyparse()
4487 …((struct yang_type *)(yyvsp[-2].backup_token).actual)->type->info.str.patterns_pcre)[2 * (((struct… in yyparse()
H A Dyang.y.in1342 …tx->models.flags & LY_CTX_TRUSTED) && ((struct yang_type *)actual)->type->info.str.patterns_pcre) {
1343 … tmp = realloc(((struct yang_type *)actual)->type->info.str.patterns_pcre,
1344 …l)->type->info.str.pat_count * sizeof *((struct yang_type *)actual)->type->info.str.patterns_pcre);
1349 … ((struct yang_type *)actual)->type->info.str.patterns_pcre = tmp;
1524 … YANG_ADDELEM(((struct yang_type *)$2.actual)->type->info.str.patterns_pcre, c, "patterns");
1526 … YANG_ADDELEM(((struct yang_type *)$2.actual)->type->info.str.patterns_pcre, c, "patterns");
1527 …actual = &(((struct yang_type *)$2.actual)->type->info.str.patterns_pcre)[2 * (((struct yang_type …
H A Dtree_schema.h938 …void **patterns_pcre; /**< array of compiled patterns to optimize its evaluation, represented as member
H A Dparser_yin.c1361 type->info.str.patterns_pcre = calloc(2 * i, sizeof *type->info.str.patterns_pcre); in fill_yin_type()
1362 LY_CHECK_ERR_GOTO(!type->info.str.patterns_pcre, LOGMEM(ctx), error); in fill_yin_type()
1378 (pcre **)&type->info.str.patterns_pcre[type->info.str.pat_count * 2], in fill_yin_type()
1379 … (pcre_extra **)&type->info.str.patterns_pcre[type->info.str.pat_count * 2 + 1])) { in fill_yin_type()
/dports/net/libyang/libyang-1.0.240/
H A Dlibyang.dump4641 'name' => 'patterns_pcre',