Home
last modified time | relevance | path

Searched refs:numchildren (Results 1 – 18 of 18) sorted by relevance

/third_party/expat/
D14-backport-Fix-build_model-regression.patch14 Store only the scaffold index in numchildren field to prevent a direct
43 - * but only uses a single field -- numchildren -- to store the source
49 + * to array dtd->scaffold) in field "numchildren".
60 + * "numchildren" field (which actually holds a source node array index
99 - (--stackTop)->numchildren = 0;
101 + (jobDest++)->numchildren = 0;
105 - const int src_node = (int)(stackTop++)->numchildren;
107 + const int src_node = (int)dest->numchildren;
114 dest->numchildren = dtd->scaffold[src_node].childcnt;
121 - stackTop -= dest->numchildren;
[all …]
D08-backport-CVE-2022-25313-Prevent-stack-exhaustion-in-build_model.patch15 Instead the numchildren variable is used to temporarily keep the
108 - dest->numchildren = 0;
113 - dest->numchildren = dtd->scaffold[src_node].childcnt;
115 - *contpos += dest->numchildren;
116 - for (i = 0, cn = dtd->scaffold[src_node].firstchild; i < dest->numchildren;
160 + * but only uses a single field -- numchildren -- to store the source
180 + (--stackTop)->numchildren = 0;
184 + const int src_node = (int)(stackTop++)->numchildren;
199 + dest->numchildren = 0;
205 + dest->numchildren = dtd->scaffold[src_node].childcnt;
[all …]
D22-backport-tests-Protect-against-nested-element-declaration-mod.patch38 + errorFlags |= ((model[0].numchildren == 2) ? 0 : (1u << 4));
44 + errorFlags |= ((model[1].numchildren == 3) ? 0 : (1u << 9));
50 + errorFlags |= ((model[2].numchildren == 0) ? 0 : (1u << 14));
56 + errorFlags |= ((model[3].numchildren == 0) ? 0 : (1u << 19));
62 + errorFlags |= ((model[4].numchildren == 0) ? 0 : (1u << 24));
68 + errorFlags |= ((model[5].numchildren == 0) ? 0 : (1u << 29));
/third_party/ltp/testcases/kernel/io/ltp-aiodio/
Ddio_append.c28 static int numchildren; variable
34 numchildren = 16; in setup()
38 if (tst_parse_int(str_numchildren, &numchildren, 1, INT_MAX)) in setup()
63 for (i = 0; i < numchildren; i++) { in run()
Ddio_read.c29 static int numchildren = 8; variable
71 if (*children_completed >= numchildren) { in do_direct_reads()
106 if (tst_parse_int(str_numchildren, &numchildren, 1, INT_MAX)) in setup()
151 for (i = 0; i < numchildren; i++) { in run()
Ddio_sparse.c36 static int numchildren = 16; variable
63 if (tst_parse_int(str_numchildren, &numchildren, 1, INT_MAX)) in setup()
104 for (i = 0; i < numchildren; i++) { in run()
Ddio_truncate.c43 static int numchildren = 16; variable
90 if (tst_parse_int(str_numchildren, &numchildren, 1, INT_MAX)) in setup()
126 for (i = 0; i < numchildren; i++) { in run()
Daiodio_append.c34 static int numchildren = 8; variable
117 if (tst_parse_int(str_numchildren, &numchildren, 1, INT_MAX)) in setup()
148 for (i = 0; i < numchildren; i++) { in run()
/third_party/gstreamer/gstreamer/gst/
Dgstbin.h102 #define GST_BIN_NUMCHILDREN(bin) (GST_BIN_CAST(bin)->numchildren)
140 gint numchildren; member
Dgstbin.c307 num = bin->numchildren; in gst_bin_child_proxy_get_children_count()
487 bin->numchildren = 0; in gst_bin_init()
1219 bin->numchildren++; in gst_bin_add_func()
1642 bin->numchildren--; in gst_bin_remove_func()
/third_party/gstreamer/gstplugins_base/ext/gl/
Dgstglmixerbin.c612 if (index < bin->numchildren) { in gst_gl_mixer_bin_child_proxy_get_child_by_index()
619 index - bin->numchildren))) { in gst_gl_mixer_bin_child_proxy_get_child_by_index()
636 num = bin->numchildren + g_list_length (mixer->priv->input_chains); in gst_gl_mixer_bin_child_proxy_get_children_count()
/third_party/gstreamer/gstplugins_bad/sys/d3d11/
Dgstd3d11compositorbin.cpp971 if (index < (guint) bin->numchildren) { in gst_d3d11_compositor_bin_child_proxy_get_child_by_index()
978 index - bin->numchildren))) { in gst_d3d11_compositor_bin_child_proxy_get_child_by_index()
994 count = GST_BIN_CAST (self)->numchildren + g_list_length (self->input_chains); in gst_d3d11_compositor_bin_child_proxy_get_children_count()
/third_party/python/Modules/expat/
Dexpat.h172 unsigned int numchildren; member
Dxmlparse.c5202 content->numchildren = 0; in doProlog()
7150 dest->numchildren = 0; in build_node()
7155 dest->numchildren = dtd->scaffold[src_node].childcnt; in build_node()
7157 *contpos += dest->numchildren; in build_node()
7158 for (i = 0, cn = dtd->scaffold[src_node].firstchild; i < dest->numchildren; in build_node()
/third_party/skia/third_party/externals/expat/expat/lib/
Dexpat.h173 unsigned int numchildren; member
Dxmlparse.c5284 content->numchildren = 0; in doProlog()
7262 dest->numchildren = 0; in build_node()
7267 dest->numchildren = dtd->scaffold[src_node].childcnt; in build_node()
7269 *contpos += dest->numchildren; in build_node()
7270 for (i = 0, cn = dtd->scaffold[src_node].firstchild; i < dest->numchildren; in build_node()
/third_party/python/Modules/
Dpyexpat.c521 PyObject *children = PyTuple_New(model->numchildren); in conv_content_model()
525 assert(model->numchildren < INT_MAX); in conv_content_model()
526 for (i = 0; i < (int)model->numchildren; ++i) { in conv_content_model()
/third_party/python/Lib/test/
Dtest_xml_etree.py3490 def _make_elem_with_children(self, numchildren): argument
3496 for i in range(numchildren):