Searched refs:sanitize (Results 1 - 25 of 58) sorted by relevance

123

/external/owasp/sanitizer/src/tests/org/owasp/html/
H A DHtmlSanitizerTest.java42 assertEquals("", sanitize(""));
43 assertEquals("", sanitize(null));
48 assertEquals("hello world", sanitize("hello world"));
53 assertEquals("<hello world>", sanitize("<hello world>"));
59 sanitize("<b>hello <i>world</i></b>"));
65 sanitize("<b>hello <bogus></bogus><i>world</i></b>"));
71 sanitize("<b>hello <i>world</i>"
79 sanitize("<b>hello <i onclick=\"takeOverWorld(this)\">world</i></b>"));
85 sanitize(
92 sanitize("<
343 private static String sanitize(@Nullable String html) throws Exception { method in class:HtmlSanitizerTest
[all...]
H A DSanitizersTest.java39 assertEquals("", Sanitizers.FORMATTING.sanitize(null));
40 assertEquals("", Sanitizers.FORMATTING.sanitize(""));
43 Sanitizers.FORMATTING.sanitize("Hello, World!"));
46 Sanitizers.FORMATTING.sanitize("Hello, <b>World</b>!"));
49 Sanitizers.FORMATTING.sanitize(
55 assertEquals("", Sanitizers.BLOCKS.sanitize(null));
58 Sanitizers.BLOCKS.sanitize("Hello, World!"));
61 Sanitizers.BLOCKS.sanitize("Hello, <b>World</b>!"));
64 Sanitizers.BLOCKS.sanitize(
76 assertEquals("", f.sanitize(nul
[all...]
H A DAntiSamyTest.java92 private static String sanitize(String html) { method in class:AntiSamyTest
95 HtmlSanitizer.sanitize(html, makePolicy(sb));
177 sanitize(html);
241 if (sanitize(s).length() != 0) {
245 if (sanitize(s).length() != 0) {
249 sanitize("<IMG SRC=&#x6A&#x61&#x76&#x61&#x73&#x63&#x72&#x69&#x70&#x74&#x3A&#x61&#x6C&#x65&#x72&#x74&#x28&#x27&#x58&#x53&#x53&#x27&#x29>");
250 sanitize("<IMG SRC=&#x6A&#x61&#x76&#x61&#x73&#x63&#x72&#x69&#x70&#x74&#x3A&#x61&#x6C&#x65&#x72&#x74&#x28&#x27&#x58&#x53&#x53&#x27&#x29>");
392 sanitize(testStr);
393 sanitize(testStr);
399 sanitize("<
[all...]
H A DExamplesTest.java61 // Invoke with no arguments to sanitize empty input stream to output.
82 String sanitized = EbayPolicyExample.POLICY_DEFINITION.sanitize(input);
89 String sanitized = EbayPolicyExample.POLICY_DEFINITION.sanitize(input);
96 String sanitized = EbayPolicyExample.POLICY_DEFINITION.sanitize(input);
H A DBenchmark.java70 n += sanitize(html).length();
93 n += sanitize(html).length();
118 "Full sanitize custom : %12d", (t3 - t2)));
122 "Full sanitize w/ PB : %12d", (t5 - t4)));
132 private static String sanitize(String html) throws Exception { method in class:Benchmark
143 HtmlSanitizer.sanitize(html, new HtmlSanitizer.Policy() {
202 HtmlSanitizer.sanitize(html, policyBuilder.build(renderer));
/external/harfbuzz_ng/src/
H A Dhb-ot-layout-jstf-table.hh57 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::JstfPriority
61 shrinkageEnableGSUB.sanitize (c, this) &&
62 shrinkageDisableGSUB.sanitize (c, this) &&
63 shrinkageEnableGPOS.sanitize (c, this) &&
64 shrinkageDisableGPOS.sanitize (c, this) &&
65 shrinkageJstfMax.sanitize (c, this) &&
66 extensionEnableGSUB.sanitize (c, this) &&
67 extensionDisableGSUB.sanitize (c, this) &&
68 extensionEnableGPOS.sanitize (c, this) &&
69 extensionDisableGPOS.sanitize (
126 inline bool sanitize (hb_sanitize_context_t *c, function in struct:OT::JstfLangSys
167 inline bool sanitize (hb_sanitize_context_t *c, function in struct:OT::JstfScript
212 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::JSTF
[all...]
H A Dhb-ot-var-hvar-table.hh38 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::DeltaSetIndexMap
104 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::HVARVVAR
107 return_trace (version.sanitize (c) &&
109 varStore.sanitize (c, this) &&
110 advMap.sanitize (c, this) &&
111 lsbMap.sanitize (c, this) &&
112 rsbMap.sanitize (c, this));
147 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::VVAR
150 return_trace (static_cast<const HVARVVAR *> (this)->sanitize (c) &&
151 vorgMap.sanitize (
[all...]
H A Dhb-ot-post-table.hh45 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::postV2Tail
48 return_trace (numberOfGlyphs.sanitize (c) &&
67 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::post
75 return_trace (v2.sanitize (c));
H A Dhb-ot-layout-gdef-table.hh74 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::AttachList
77 return_trace (coverage.sanitize (c, this) && attachPoint.sanitize (c, this));
105 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::CaretValueFormat1
132 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::CaretValueFormat2
156 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::CaretValueFormat3
159 return_trace (c->check_struct (this) && deviceTable.sanitize (c, this));
188 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::CaretValue
191 if (!u.format.sanitize (c)) return_trace (false);
193 case 1: return_trace (u.format1.sanitize (
231 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::LigGlyph
267 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::LigCaretList
290 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MarkGlyphSetsFormat1
315 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MarkGlyphSets
387 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::GDEF
[all...]
H A Dhb-ot-math-table.hh44 inline bool sanitize (hb_sanitize_context_t *c, const void *base) const function in struct:OT::MathValueRecord
47 return_trace (c->check_struct (this) && deviceTable.sanitize (c, base));
68 if (!mathValueRecords[i].sanitize (c, this))
74 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MathConstants
168 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MathItalicsCorrectionInfo
172 coverage.sanitize (c, this) &&
173 italicsCorrection.sanitize (c, this));
199 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MathTopAccentAttachment
203 topAccentCoverage.sanitize (c, this) &&
204 topAccentAttachment.sanitize (
241 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MathKern
298 inline bool sanitize (hb_sanitize_context_t *c, const void *base) const function in struct:OT::MathKernInfoRecord
331 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MathKernInfo
365 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MathGlyphInfo
420 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MathGlyphVariantRecord
450 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MathGlyphPartRecord
495 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MathGlyphAssembly
540 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MathGlyphConstruction
595 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MathVariants
688 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MATH
[all...]
H A Dhb-ot-cbdt-table.hh36 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::SmallGlyphMetrics
70 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::SBitLineMetrics
99 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::IndexSubtableHeader
115 inline bool sanitize (hb_sanitize_context_t *c, unsigned int glyph_count) const function in struct:OT::IndexSubtableFormat1Or3
145 inline bool sanitize (hb_sanitize_context_t *c, unsigned int glyph_count) const function in struct:OT::IndexSubtable
148 if (!u.header.sanitize (c)) return_trace (false);
150 case 1: return_trace (u.format1.sanitize (c, glyph_count));
151 case 3: return_trace (u.format3.sanitize (c, glyph_count));
191 inline bool sanitize (hb_sanitize_context_t *c, const void *base) const function in struct:OT::IndexSubtableRecord
196 offsetToSubtable.sanitize (
226 inline bool sanitize (hb_sanitize_context_t *c, unsigned int count) const function in struct:OT::IndexSubtableArray
262 inline bool sanitize (hb_sanitize_context_t *c, const void *base) const function in struct:OT::BitmapSizeTable
320 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::CBLC
367 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::CBDT
[all...]
H A Dhb-ot-glyf-table.hh47 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::loca
73 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::glyf
H A Dhb-open-file-private.hh56 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::TableRecord
106 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::OffsetTable
135 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::TTCHeaderVersion1
138 return_trace (table.sanitize (c, this));
175 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::TTCHeader
178 if (unlikely (!u.header.version.sanitize (c))) return_trace (false);
181 case 1: return_trace (u.version1.sanitize (c));
240 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::OpenTypeFontFile
243 if (unlikely (!u.tag.sanitize (c))) return_trace (false);
248 case TrueTypeTag: return_trace (u.fontFace.sanitize (
[all...]
H A Dhb-ot-maxp-table.hh51 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::maxp
H A Dhb-ot-cmap-table.hh54 inline bool sanitize (hb_sanitize_context_t *c) const
146 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::CmapSubtableFormat4
204 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::CmapSubtableLongGroup
232 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::CmapSubtableTrimmed
235 return_trace (c->check_struct (this) && glyphIdArray.sanitize (c));
265 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::CmapSubtableLongSegmented
268 return_trace (c->check_struct (this) && groups.sanitize (c));
312 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::UnicodeValueRange
334 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::UVSMapping
374 inline bool sanitize (hb_sanitize_context_ function in struct:OT::VariationSelectorRecord
400 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::CmapSubtableFormat14
436 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::CmapSubtable
480 inline bool sanitize (hb_sanitize_context_t *c, const void *base) const function in struct:OT::EncodingRecord
516 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::cmap
[all...]
H A Dhb-ot-layout-common-private.hh80 inline bool sanitize (hb_sanitize_context_t *c, const void *base) const function in struct:OT::Record
84 return_trace (c->check_struct (this) && offset.sanitize (c, base, &closure));
137 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::RecordListOf
140 return_trace (RecordArrayOf<Type>::sanitize (c, this));
151 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::RangeRecord
216 inline bool sanitize (hb_sanitize_context_t *c, function in struct:OT::LangSys
220 return_trace (c->check_struct (this) && featureIndex.sanitize (c));
256 inline bool sanitize (hb_sanitize_context_t *c, function in struct:OT::Script
260 return_trace (defaultLangSys.sanitize (c, this) && langSys.sanitize (
280 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::FeatureParamsSize
392 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::FeatureParamsStylisticSet
426 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::FeatureParamsCharacterVariants
467 inline bool sanitize (hb_sanitize_context_t *c, hb_tag_t tag) const function in struct:OT::FeatureParams
509 inline bool sanitize (hb_sanitize_context_t *c, function in struct:OT::Feature
653 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::Lookup
711 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::CoverageFormat1
802 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::CoverageFormat2
905 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::Coverage
1018 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::ClassDefFormat1
1075 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::ClassDefFormat2
1133 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::ClassDef
1200 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::VarRegionAxis
1238 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::VarRegionList
1294 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::VarData
1334 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::VariationStore
1568 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::ConditionFormat1
1634 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::VariationDevice
1693 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::Device
[all...]
H A Dhb-ot-var-avar-table.hh37 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::AxisValueMap
96 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::avar
99 if (unlikely (!(version.sanitize (c) &&
108 if (unlikely (!map->sanitize (c)))
H A Dhb-ot-hmtx-table.hh58 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::hmtxvmtx
H A Dhb-ot-layout-gpos-table.hh168 if ((format & xPlaDevice) && !get_device (values++).sanitize (c, base)) return false;
169 if ((format & yPlaDevice) && !get_device (values++).sanitize (c, base)) return false;
170 if ((format & xAdvDevice) && !get_device (values++).sanitize (c, base)) return false;
171 if ((format & yAdvDevice) && !get_device (values++).sanitize (c, base)) return false;
215 /* Just sanitize referenced Device tables. Doesn't check the values themselves. */
243 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::AnchorFormat1
274 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::AnchorFormat2
304 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::AnchorFormat3
307 return_trace (c->check_struct (this) && xDeviceTable.sanitize (c, this) && yDeviceTable.sanitize (
340 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::Anchor
373 inline bool sanitize (hb_sanitize_context_t *c, unsigned int cols) const function in struct:OT::AnchorMatrix
399 inline bool sanitize (hb_sanitize_context_t *c, const void *base) const function in struct:OT::MarkRecord
449 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MarkArray
485 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::SinglePosFormat1
537 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::SinglePosFormat2
665 inline bool sanitize (hb_sanitize_context_t *c, const sanitize_closure_t *closure) const function in struct:OT::PairSet
715 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::PairPosFormat1
804 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::PairPosFormat2
879 inline bool sanitize (hb_sanitize_context_t *c, const void *base) const function in struct:OT::EntryExitRecord
1014 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::CursivePosFormat1
1099 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MarkBasePosFormat1
1216 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MarkLigPosFormat1
1330 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::MarkMarkPosFormat1
1489 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::PosLookup
1514 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::GPOS
[all...]
H A Dhb-ot-name-table.hh59 inline bool sanitize (hb_sanitize_context_t *c, const void *base) const function in struct:OT::NameRecord
110 if (!nameRecord[i].sanitize (c, string_pool)) return_trace (false);
114 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::name
H A Dhb-open-type-private.hh202 { return format->sanitize (this); }
204 inline return_t dispatch (const T &obj) { return obj.sanitize (this); }
312 /* Template to sanitize an object. */
316 static hb_blob_t *sanitize (hb_blob_t *blob) { function in struct:OT::Sanitizer
336 sane = t->sanitize (c);
341 /* sanitize again to ensure no toe-stepping */
343 sane = t->sanitize (c);
643 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::IntType
691 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::LONGDATETIME
769 inline bool sanitize (hb_sanitize_context_ function in struct:OT::FixedVersion
805 inline bool sanitize (hb_sanitize_context_t *c, const void *base) const function in struct:OT::OffsetTo
816 inline bool sanitize (hb_sanitize_context_t *c, const void *base, T user_data) const function in struct:OT::OffsetTo
894 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::ArrayOf
910 inline bool sanitize (hb_sanitize_context_t *c, const void *base) const function in struct:OT::ArrayOf
921 inline bool sanitize (hb_sanitize_context_t *c, const void *base, T user_data) const function in struct:OT::ArrayOf
971 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::OffsetListOf
977 inline bool sanitize (hb_sanitize_context_t *c, T user_data) const function in struct:OT::OffsetListOf
1018 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::HeadlessArrayOf
[all...]
H A Dhb-ot-head-table.hh55 inline bool sanitize (hb_sanitize_context_t *c) const function in struct:OT::head
/external/clang/test/SemaTemplate/
H A Darray-to-pointer-decay.cpp22 template <typename Type> static bool sanitize() { function
26 bool closure = sanitize<int>();
/external/libcxx/test/support/
H A Dfilesystem_dynamic_test_helper.py20 def sanitize(p): function
45 root_p = sanitize(root_p)
51 root_p = sanitize(root_p)
57 with open(sanitize(fname), 'w') as f:
62 os.mkdir(sanitize(dname))
66 os.symlink(sanitize(source), sanitize(link))
70 os.link(sanitize(source), sanitize(link))
74 os.mkfifo(sanitize(sourc
[all...]
/external/elfutils/
H A DMakefile.am42 --enable-valgrind --enable-sanitize-undefined \

Completed in 497 milliseconds

123