Home
last modified time | relevance | path

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

1234

/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 …]
DBenchmark.java70 n += sanitize(html).length(); in main()
93 n += sanitize(html).length(); in main()
132 private static String sanitize(String html) throws Exception { in sanitize() method in Benchmark
143 HtmlSanitizer.sanitize(html, new HtmlSanitizer.Policy() { in sanitize()
202 HtmlSanitizer.sanitize(html, policyBuilder.build(renderer)); in sanitizeUsingPolicyBuilder()
DExamplesTest.java82 String sanitized = EbayPolicyExample.POLICY_DEFINITION.sanitize(input); in testSanitizeRemovesScripts()
89 String sanitized = EbayPolicyExample.POLICY_DEFINITION.sanitize(input); in testSanitizeRemovesOnclick()
96 String sanitized = EbayPolicyExample.POLICY_DEFINITION.sanitize(input); in testTextAllowedInLinks()
/external/harfbuzz_ng/src/
Dhb-ot-layout-jstf-table.hh57 inline 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-gdef-table.hh74 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
77 return_trace (coverage.sanitize (c, this) && attachPoint.sanitize (c, this)); in sanitize()
105 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
132 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
156 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
159 return_trace (c->check_struct (this) && deviceTable.sanitize (c, this)); in sanitize()
185 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
188 if (!u.format.sanitize (c)) return_trace (false); in sanitize()
190 case 1: return_trace (u.format1.sanitize (c)); in sanitize()
191 case 2: return_trace (u.format2.sanitize (c)); in sanitize()
[all …]
Dhb-ot-cmap-table.hh54 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
146 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
204 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
232 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
235 return_trace (c->check_struct (this) && glyphIdArray.sanitize (c)); in sanitize()
265 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
268 return_trace (c->check_struct (this) && groups.sanitize (c)); in sanitize()
312 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
334 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
374 inline bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function
[all …]
Dhb-ot-layout-common-private.hh80 inline bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function
84 return_trace (c->check_struct (this) && offset.sanitize (c, base, &closure)); in sanitize()
137 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
140 return_trace (RecordArrayOf<Type>::sanitize (c, this)); in sanitize()
151 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
216 inline bool sanitize (hb_sanitize_context_t *c, in sanitize() function
220 return_trace (c->check_struct (this) && featureIndex.sanitize (c)); in sanitize()
256 inline bool sanitize (hb_sanitize_context_t *c, in sanitize() function
260 return_trace (defaultLangSys.sanitize (c, this) && langSys.sanitize (c, this)); in sanitize()
280 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
[all …]
Dhb-open-file-private.hh56 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
106 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
135 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
138 return_trace (table.sanitize (c, this)); in sanitize()
175 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
178 if (unlikely (!u.header.version.sanitize (c))) return_trace (false); in sanitize()
181 case 1: return_trace (u.version1.sanitize (c)); in sanitize()
240 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
243 if (unlikely (!u.tag.sanitize (c))) return_trace (false); in sanitize()
248 case TrueTypeTag: return_trace (u.fontFace.sanitize (c)); in sanitize()
[all …]
Dhb-ot-layout-gpos-table.hh167 if ((format & xPlaDevice) && !get_device (values++).sanitize (c, base)) return false; in sanitize_value_devices()
168 if ((format & yPlaDevice) && !get_device (values++).sanitize (c, base)) return false; in sanitize_value_devices()
169 if ((format & xAdvDevice) && !get_device (values++).sanitize (c, base)) return false; in sanitize_value_devices()
170 if ((format & yAdvDevice) && !get_device (values++).sanitize (c, base)) return false; in sanitize_value_devices()
241 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
271 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
300 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
303 …return_trace (c->check_struct (this) && xDeviceTable.sanitize (c, this) && yDeviceTable.sanitize (… in sanitize()
336 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
339 if (!u.format.sanitize (c)) return_trace (false); in sanitize()
[all …]
Dhb-open-type-private.hh200 { return format->sanitize (this); } in may_dispatch()
202 inline return_t dispatch (const T &obj) { return obj.sanitize (this); } in dispatch()
314 static hb_blob_t *sanitize (hb_blob_t *blob) { in sanitize() function
334 sane = t->sanitize (c); in sanitize()
341 sane = t->sanitize (c); in sanitize()
641 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
678 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
756 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
792 inline bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function
799 return_trace (likely (obj.sanitize (c)) || neuter (c)); in sanitize()
[all …]
Dhb-ot-layout-gsub-table.hh100 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
103 return_trace (coverage.sanitize (c, this) && deltaGlyphID.sanitize (c)); in sanitize()
177 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
180 return_trace (coverage.sanitize (c, this) && substitute.sanitize (c)); in sanitize()
308 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
311 return_trace (substitute.sanitize (c)); in sanitize()
381 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
384 return_trace (coverage.sanitize (c, this) && sequence.sanitize (c, this)); in sanitize()
525 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
528 return_trace (coverage.sanitize (c, this) && alternateSet.sanitize (c, this)); in sanitize()
[all …]
Dhb-ot-layout-gsubgpos-private.hh926 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
1155 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
1158 return inputCount.sanitize (c) in sanitize()
1159 && lookupCount.sanitize (c) in sanitize()
1220 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
1223 return_trace (rule.sanitize (c, this)); in sanitize()
1303 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
1306 return_trace (coverage.sanitize (c, this) && ruleSet.sanitize (c, this)); in sanitize()
1396 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
1399 …return_trace (coverage.sanitize (c, this) && classDef.sanitize (c, this) && ruleSet.sanitize (c, t… in sanitize()
[all …]
Dhb-ot-name-table.hh59 inline bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function
110 if (!nameRecord[i].sanitize (c, string_pool)) return_trace (false); in sanitize_records()
114 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
Dhb-ot-glyf-table.hh47 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
73 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
Dhb-ot-font.cc63 hb_blob_t *os2_blob = OT::Sanitizer<OT::os2>::sanitize (face->reference_table (os2_tag)); in init()
76 hb_blob_t *_hea_blob = OT::Sanitizer<OT::_hea>::sanitize (face->reference_table (_hea_tag)); in init()
87 this->blob = OT::Sanitizer<OT::_mtx>::sanitize (face->reference_table (_mtx_tag)); in init()
143 … hb_blob_t *head_blob = OT::Sanitizer<OT::head>::sanitize (face->reference_table (HB_OT_TAG_head)); in init()
154 this->loca_blob = OT::Sanitizer<OT::loca>::sanitize (face->reference_table (HB_OT_TAG_loca)); in init()
156 this->glyf_blob = OT::Sanitizer<OT::glyf>::sanitize (face->reference_table (HB_OT_TAG_glyf)); in init()
228 this->blob = OT::Sanitizer<OT::cmap>::sanitize (face->reference_table (HB_OT_TAG_cmap)); in init()
Dhb-face.cc171 … _hb_face_for_data_closure_create (OT::Sanitizer<OT::OpenTypeFontFile>::sanitize (hb_blob_referenc… in hb_face_create()
431 hb_blob_t *head_blob = OT::Sanitizer<OT::head>::sanitize (reference_table (HB_OT_TAG_head)); in load_upem()
475 hb_blob_t *maxp_blob = OT::Sanitizer<OT::maxp>::sanitize (reference_table (HB_OT_TAG_maxp)); in load_num_glyphs()
Dhb-ot-maxp-table.hh51 inline bool sanitize (hb_sanitize_context_t *c) const in sanitize() function
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_cvs/searchcvs/www/projectName/
Dsearchcvs.php62 …<input type="text" size="60" id="q" name="q"<?php print ($_GET["q"] ? " value=\"" . sanitize($_GET…
78 … . " for " . ($_GET["q"] == "" ? "last $days days of commits" : "$et" . sanitize($_GET["q"], "text…
79 $title = ($rows == 0 ? "No results found for " . sanitize($_GET["q"], "text") . "" : $title);
214 function sanitize($str, $type = "url") function
223 …$text = (!$selected ? "<a href=\"?q=" . sanitize($_GET["q"]) . "&amp;p=$page\">$innertext</a>" : $…
/external/clang/test/SemaTemplate/
Darray-to-pointer-decay.cpp22 template <typename Type> static bool sanitize() { in sanitize() function
26 bool closure = sanitize<int>();
/external/owasp/sanitizer/src/main/org/owasp/html/
DPolicyFactory.java100 public String sanitize(@Nullable String html) { in sanitize() method in PolicyFactory
101 return sanitize(html, null, null); in sanitize()
116 public <CTX> String sanitize( in sanitize() method in PolicyFactory
121 HtmlSanitizer.sanitize( in sanitize()
/external/llvm/test/CodeGen/X86/
Dx86-sanitizer-shrink-wrapping.ll9 ; CHECK-LABEL: sanitize:
16 define void @sanitize() #0 {
/external/llvm/lib/Fuzzer/test/uninstrumented/
DCMakeLists.txt4 "${LIBFUZZER_FLAGS_BASE} -O0 -fno-sanitize=all")
/external/llvm/lib/Fuzzer/test/dfsan/
DCMakeLists.txt4 "${LIBFUZZER_FLAGS_BASE} -O0 -fno-sanitize=all -fsanitize=dataflow")

1234