Home
last modified time | relevance | path

Searched refs:sanitize (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/external/owasp/sanitizer/src/tests/org/owasp/html/
DHtmlSanitizerTest.java42 assertEquals("", sanitize("")); in testEmpty()
43 assertEquals("", sanitize(null)); in testEmpty()
48 assertEquals("hello world", sanitize("hello world")); in testSimpleText()
53 assertEquals("<hello world>", sanitize("<hello world>")); in testEntities1()
59 sanitize("<b>hello <i>world</i></b>")); in testEntities2()
65 sanitize("<b>hello <bogus></bogus><i>world</i></b>")); in testUnknownTagsRemoved()
71 sanitize("<b>hello <i>world</i>" in testUnsafeTagsRemoved()
79 sanitize("<b>hello <i onclick=\"takeOverWorld(this)\">world</i></b>")); in testUnsafeAttributesRemoved()
85 sanitize( in testCruftEscaped()
92 sanitize("<b id=\"foo\" / -->hello <i>world<</i></b>")); in testTagCruftRemoved()
[all …]
DSanitizersTest.java39 assertEquals("", Sanitizers.FORMATTING.sanitize(null)); in testFormatting()
40 assertEquals("", Sanitizers.FORMATTING.sanitize("")); in testFormatting()
43 Sanitizers.FORMATTING.sanitize("Hello, World!")); in testFormatting()
46 Sanitizers.FORMATTING.sanitize("Hello, <b>World</b>!")); in testFormatting()
49 Sanitizers.FORMATTING.sanitize( in testFormatting()
55 assertEquals("", Sanitizers.BLOCKS.sanitize(null)); in testBlockElements()
58 Sanitizers.BLOCKS.sanitize("Hello, World!")); in testBlockElements()
61 Sanitizers.BLOCKS.sanitize("Hello, <b>World</b>!")); in testBlockElements()
64 Sanitizers.BLOCKS.sanitize( in testBlockElements()
76 assertEquals("", f.sanitize(null)); in testBlockAndFormattingElements()
[all …]
DAntiSamyTest.java92 private static String sanitize(String html) {
95 HtmlSanitizer.sanitize(html, makePolicy(sb));
177 sanitize(html);
241 if (sanitize(s).length() != 0) {
245 if (sanitize(s).length() != 0) {
249sanitize("<IMG SRC=&#x6A&#x61&#x76&#x61&#x73&#x63&#x72&#x69&#x70&#x74&#x3A&#x61&#x6C&#x65&#x72&#x7…
250sanitize("<IMG SRC=&#x6A&#x61&#x76&#x61&#x73&#x63&#x72&#x69&#x70&#x74&#x3A&#x61&#x6C&#x65&#x72&#x7…
392 sanitize(testStr);
393 sanitize(testStr);
399 sanitize("<a . href=\"http://www.test.com\">"));
[all …]
/external/harfbuzz_ng/src/
Dhb-aat-layout-just-table.hh48 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
65 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
94 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
112 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
137 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
163 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
183 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
191 case 0: return_trace (u.decompositionAction.sanitize (c)); in sanitize()
192 case 1: return_trace (u.unconditionalAddGlyphAction.sanitize (c)); in sanitize()
193 case 2: return_trace (u.conditionalAddGlyphAction.sanitize (c)); in sanitize()
[all …]
Dhb-ot-layout-jstf-table.hh57 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
61 shrinkageEnableGSUB.sanitize (c, this) && in sanitize()
62 shrinkageDisableGSUB.sanitize (c, this) && in sanitize()
63 shrinkageEnableGPOS.sanitize (c, this) && in sanitize()
64 shrinkageDisableGPOS.sanitize (c, this) && in sanitize()
65 shrinkageJstfMax.sanitize (c, this) && in sanitize()
66 extensionEnableGSUB.sanitize (c, this) && in sanitize()
67 extensionDisableGSUB.sanitize (c, this) && in sanitize()
68 extensionEnableGPOS.sanitize (c, this) && in sanitize()
69 extensionDisableGPOS.sanitize (c, this) && in sanitize()
[all …]
Dhb-ot-layout-base-table.hh46 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
67 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
96 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
100 deviceTable.sanitize (c, this))); in sanitize()
130 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
133 if (unlikely (!u.format.sanitize (c))) return_trace (false); in sanitize()
135 case 1: return_trace (u.format1.sanitize (c)); in sanitize()
136 case 2: return_trace (u.format2.sanitize (c)); in sanitize()
137 case 3: return_trace (u.format3.sanitize (c)); in sanitize()
165 bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function
[all …]
Dhb-aat-layout-common.hh57 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
60 return_trace (arrayZ.sanitize (c, c->get_num_glyphs ())); in sanitize()
62 bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function
65 return_trace (arrayZ.sanitize (c, c->get_num_glyphs (), base)); in sanitize()
85 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
88 return_trace (c->check_struct (this) && value.sanitize (c)); in sanitize()
90 bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function
93 return_trace (c->check_struct (this) && value.sanitize (c, base)); in sanitize()
115 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
118 return_trace (segments.sanitize (c)); in sanitize()
[all …]
Dhb-ot-math-table.hh44 bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function
47 return_trace (c->check_struct (this) && deviceTable.sanitize (c, base)); in sanitize()
68 if (!mathValueRecords[i].sanitize (c, this)) in sanitize_math_value_records()
74 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
168 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
172 coverage.sanitize (c, this) && in sanitize()
173 italicsCorrection.sanitize (c, this)); in sanitize()
199 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
203 topAccentCoverage.sanitize (c, this) && in sanitize()
204 topAccentAttachment.sanitize (c, this)); in sanitize()
[all …]
Dhb-ot-layout-gdef-table.hh75 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
78 return_trace (coverage.sanitize (c, this) && attachPoint.sanitize (c, this)); in sanitize()
106 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
131 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
156 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
159 return_trace (c->check_struct (this) && deviceTable.sanitize (c, this)); in sanitize()
188 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
191 if (!u.format.sanitize (c)) return_trace (false); in sanitize()
193 case 1: return_trace (u.format1.sanitize (c)); in sanitize()
194 case 2: return_trace (u.format2.sanitize (c)); in sanitize()
[all …]
Dhb-aat-layout-bsln-table.hh42 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
60 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
64 lookupTable.sanitize (c))); in sanitize()
78 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
101 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
104 return_trace (c->check_struct (this) && lookupTable.sanitize (c)); in sanitize()
121 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
129 case 0: return_trace (parts.format0.sanitize (c)); in sanitize()
130 case 1: return_trace (parts.format1.sanitize (c)); in sanitize()
131 case 2: return_trace (parts.format2.sanitize (c)); in sanitize()
[all …]
Dhb-ot-stat-table.hh64 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
89 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
118 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
143 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
162 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
198 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
206 case 1: return_trace (u.format1.sanitize (c)); in sanitize()
207 case 2: return_trace (u.format2.sanitize (c)); in sanitize()
208 case 3: return_trace (u.format3.sanitize (c)); in sanitize()
209 case 4: return_trace (u.format4.sanitize (c)); in sanitize()
[all …]
Dhb-open-file.hh66 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
190 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
193 return_trace (c->check_struct (this) && tables.sanitize (c)); in sanitize()
216 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
219 return_trace (table.sanitize (c, this)); in sanitize()
256 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
259 if (unlikely (!u.header.version.sanitize (c))) return_trace (false); in sanitize()
262 case 1: return_trace (u.version1.sanitize (c)); in sanitize()
289 bool sanitize (hb_sanitize_context_t *c, in sanitize() function
294 offset.sanitize (c, data_base) && in sanitize()
[all …]
Dhb-ot-var-hvar-table.hh38 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
106 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
109 return_trace (version.sanitize (c) && in sanitize()
111 varStore.sanitize (c, this) && in sanitize()
112 advMap.sanitize (c, this) && in sanitize()
113 lsbMap.sanitize (c, this) && in sanitize()
114 rsbMap.sanitize (c, this)); in sanitize()
155 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
158 return_trace (static_cast<const HVARVVAR *> (this)->sanitize (c) && in sanitize()
159 vorgMap.sanitize (c, this)); in sanitize()
Dhb-ot-color-cbdt-table.hh48 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
82 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
111 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
127 bool sanitize (hb_sanitize_context_t *c, unsigned int glyph_count) const in sanitize() function
131 offsetArrayZ.sanitize (c, glyph_count + 1)); in sanitize()
158 bool sanitize (hb_sanitize_context_t *c, unsigned int glyph_count) const in sanitize() function
161 if (!u.header.sanitize (c)) return_trace (false); in sanitize()
163 case 1: return_trace (u.format1.sanitize (c, glyph_count)); in sanitize()
164 case 3: return_trace (u.format3.sanitize (c, glyph_count)); in sanitize()
204 bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function
[all …]
Dhb-ot-layout-common.hh181 bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function
185 return_trace (c->check_struct (this) && offset.sanitize (c, base, &closure)); in sanitize()
255 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
258 return_trace (RecordArrayOf<Type>::sanitize (c, this)); in sanitize()
268 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
343 bool sanitize (hb_sanitize_context_t *c, in sanitize() function
347 return_trace (c->check_struct (this) && featureIndex.sanitize (c)); in sanitize()
412 bool sanitize (hb_sanitize_context_t *c, in sanitize() function
416 return_trace (defaultLangSys.sanitize (c, this) && langSys.sanitize (c, this)); in sanitize()
436 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
[all …]
Dhb-aat-layout-opbd-table.hh42 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
75 bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function
78 return_trace (likely (c->check_struct (this) && lookupTable.sanitize (c, base))); in sanitize()
112 bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function
115 return_trace (likely (c->check_struct (this) && lookupTable.sanitize (c, base))); in sanitize()
142 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
150 case 0: return_trace (u.format0.sanitize (c, this)); in sanitize()
151 case 1: return_trace (u.format1.sanitize (c, this)); in sanitize()
Dhb-ot-color-cpal-table.hh77 bool sanitize (hb_sanitize_context_t *c, in sanitize() function
84 (!paletteFlagsZ || (base+paletteFlagsZ).sanitize (c, palette_count)) && in sanitize()
85 (!paletteLabelsZ || (base+paletteLabelsZ).sanitize (c, palette_count)) && in sanitize()
86 (!colorLabelsZ || (base+colorLabelsZ).sanitize (c, color_count))); in sanitize()
163 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
167 (this+colorRecordsZ).sanitize (c, numColorRecords) && in sanitize()
168 colorRecordIndicesZ.sanitize (c, numPalettes) && in sanitize()
169 (version == 0 || v1 ().sanitize (c, this, numPalettes, numColors))); in sanitize()
Dhb-ot-cff1-table.hh59 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
62 return_trace (codes.sanitize (c)); in sanitize()
86 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
99 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
102 return_trace (ranges.sanitize (c)); in sanitize()
130 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
143 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
146 return_trace (supps.sanitize (c)); in sanitize()
288 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
296 case 0: if (unlikely (!u.format0.sanitize (c))) { return_trace (false); } break; in sanitize()
[all …]
Dhb-aat-layout-lcar-table.hh63 bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function
66 return_trace (likely (c->check_struct (this) && lookupTable.sanitize (c, base))); in sanitize()
102 bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function
105 return_trace (likely (c->check_struct (this) && lookupTable.sanitize (c, base))); in sanitize()
136 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
143 case 0: return_trace (u.format0.sanitize (c, this)); in sanitize()
144 case 1: return_trace (u.format1.sanitize (c, this)); in sanitize()
Dhb-aat-layout-trak-table.hh56 bool sanitize (hb_sanitize_context_t *c, const void *base, in sanitize() function
61 (valuesZ.sanitize (c, base, table_size)))); in sanitize()
133 bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function
137 sizeTable.sanitize (c, base, nSizes) && in sanitize()
138 trackTable.sanitize (c, nTracks, base, nSizes))); in sanitize()
201 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
207 horizData.sanitize (c, this, this) && in sanitize()
208 vertData.sanitize (c, this, this))); in sanitize()
Dhb-ot-layout-gpos-table.hh168 if ((format & xPlaDevice) && !get_device (values++).sanitize (c, base)) return false; in sanitize_value_devices()
169 if ((format & yPlaDevice) && !get_device (values++).sanitize (c, base)) return false; in sanitize_value_devices()
170 if ((format & xAdvDevice) && !get_device (values++).sanitize (c, base)) return false; in sanitize_value_devices()
171 if ((format & yAdvDevice) && !get_device (values++).sanitize (c, base)) return false; in sanitize_value_devices()
255 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
299 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
335 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
338 …return_trace (c->check_struct (this) && xDeviceTable.sanitize (c, this) && yDeviceTable.sanitize (… in sanitize()
382 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
385 if (!u.format.sanitize (c)) return_trace (false); in sanitize()
[all …]
Dhb-ot-cff2-table.hh92 bool sanitize (hb_sanitize_context_t *c, unsigned int fdcount) const in sanitize() function
100 case 0: return_trace (u.format0.sanitize (c, fdcount)); in sanitize()
101 case 3: return_trace (u.format3.sanitize (c, fdcount)); in sanitize()
102 case 4: return_trace (u.format4.sanitize (c, fdcount)); in sanitize()
119 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
122 …ace (likely (c->check_struct (this)) && c->check_range (&varStore, size) && varStore.sanitize (c)); in sanitize()
417 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
446 if (unlikely (!topDictStr.sanitize (&sc))) { fini (); return; } in init()
459 if (((varStore != &Null(CFF2VariationStore)) && unlikely (!varStore->sanitize (&sc))) || in init()
460 (charStrings == &Null(CFF2CharStrings)) || unlikely (!charStrings->sanitize (&sc)) || in init()
[all …]
Dhb-ot-color-colr-table.hh44 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
71 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
115 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
119 (this+baseGlyphsZ).sanitize (c, numBaseGlyphs) && in sanitize()
120 (this+layersZ).sanitize (c, numLayers))); in sanitize()
/external/libcxx/test/support/
Dfilesystem_dynamic_test_helper.py22 def sanitize(p): function
47 root_p = sanitize(root_p)
53 root_p = sanitize(root_p)
59 with open(sanitize(fname), 'w') as f:
64 os.mkdir(sanitize(dname))
68 os.symlink(sanitize(source), sanitize(link))
72 os.link(sanitize(source), sanitize(link))
76 os.mkfifo(sanitize(source))
81 sanitized_source = sanitize(source)
/external/tensorflow/tensorflow/python/kernel_tests/proto/
Ddecode_proto_op_test_base.py150 message_type, message_format, sanitize, argument
170 assert not sanitize
191 sanitize=sanitize)
222 sanitize=False)
234 sanitize=False,
262 sanitize=False)
280 sanitize=False)
292 sanitize=True)
295 def testCorruptProtobuf(self, sanitize): argument
313 sanitize=sanitize))
[all …]

12345678910>>...13