/external/owasp/sanitizer/src/tests/org/owasp/html/ |
D | HtmlSanitizerTest.java | 42 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 …]
|
D | SanitizersTest.java | 39 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 …]
|
D | AntiSamyTest.java | 92 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) { 249 …sanitize("<IMG SRC=javascript:aler… 250 …sanitize("<IMG SRC=javascript:aler… 392 sanitize(testStr); 393 sanitize(testStr); 399 sanitize("<a . href=\"http://www.test.com\">")); [all …]
|
/external/harfbuzz_ng/src/ |
D | hb-aat-layout-just-table.hh | 48 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 …]
|
D | hb-ot-layout-jstf-table.hh | 57 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 …]
|
D | hb-ot-layout-base-table.hh | 49 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 70 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 99 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 103 deviceTable.sanitize (c, this))); in sanitize() 131 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 134 if (unlikely (!u.format.sanitize (c))) return_trace (false); in sanitize() 136 case 1: return_trace (u.format1.sanitize (c)); in sanitize() 137 case 2: return_trace (u.format2.sanitize (c)); in sanitize() 138 case 3: return_trace (u.format3.sanitize (c)); in sanitize() 171 bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function [all …]
|
D | hb-aat-layout-common.hh | 57 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 …]
|
D | hb-ot-math-table.hh | 44 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 …]
|
D | hb-ot-layout-gdef-table.hh | 75 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 …]
|
D | hb-ot-stat-table.hh | 62 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 85 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 154 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 178 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 186 case 1: return_trace (likely (u.format1.sanitize (c))); in sanitize() 187 case 2: return_trace (likely (u.format2.sanitize (c))); in sanitize() 188 case 3: return_trace (likely (u.format3.sanitize (c))); in sanitize() 189 case 4: return_trace (likely (u.format4.sanitize (c))); in sanitize() [all …]
|
D | hb-aat-layout-bsln-table.hh | 42 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 …]
|
D | hb-open-file.hh | 66 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 188 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 191 return_trace (c->check_struct (this) && tables.sanitize (c)); in sanitize() 214 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 217 return_trace (table.sanitize (c, this)); in sanitize() 254 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 257 if (unlikely (!u.header.version.sanitize (c))) return_trace (false); in sanitize() 260 case 1: return_trace (u.version1.sanitize (c)); in sanitize() 287 bool sanitize (hb_sanitize_context_t *c, in sanitize() function 292 offset.sanitize (c, data_base) && in sanitize() [all …]
|
D | hb-open-type.hh | 80 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 134 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 224 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 296 bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function 301 StructAtOffset<Type> (base, *this).sanitize (c) || in sanitize() 305 bool sanitize (hb_sanitize_context_t *c, const void *base, T1 d1) const in sanitize() function 310 StructAtOffset<Type> (base, *this).sanitize (c, d1) || in sanitize() 314 bool sanitize (hb_sanitize_context_t *c, const void *base, T1 d1, T2 d2) const in sanitize() function 319 StructAtOffset<Type> (base, *this).sanitize (c, d1, d2) || in sanitize() 323 bool sanitize (hb_sanitize_context_t *c, const void *base, T1 d1, T2 d2, T3 d3) const in sanitize() function [all …]
|
D | hb-ot-layout-common.hh | 91 bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function 95 return_trace (c->check_struct (this) && offset.sanitize (c, base, &closure)); in sanitize() 150 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 153 return_trace (RecordArrayOf<Type>::sanitize (c, this)); in sanitize() 163 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 239 bool sanitize (hb_sanitize_context_t *c, in sanitize() function 243 return_trace (c->check_struct (this) && featureIndex.sanitize (c)); in sanitize() 290 bool sanitize (hb_sanitize_context_t *c, in sanitize() function 294 return_trace (defaultLangSys.sanitize (c, this) && langSys.sanitize (c, this)); in sanitize() 314 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function [all …]
|
D | hb-ot-var-hvar-table.hh | 38 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() 148 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 151 return_trace (static_cast<const HVARVVAR *> (this)->sanitize (c) && in sanitize() 152 vorgMap.sanitize (c, this)); in sanitize()
|
D | hb-ot-color-cbdt-table.hh | 48 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 …]
|
D | hb-ot-layout-gpos-table.hh | 168 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() 250 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 281 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 311 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 314 …return_trace (c->check_struct (this) && xDeviceTable.sanitize (c, this) && yDeviceTable.sanitize (… in sanitize() 347 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 350 if (!u.format.sanitize (c)) return_trace (false); in sanitize() [all …]
|
D | hb-ot-color-cpal-table.hh | 77 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()
|
D | hb-ot-cff1-table.hh | 59 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 62 return_trace (c->check_struct (this) && codes[nCodes - 1].sanitize (c)); in sanitize() 87 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 103 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 106 return_trace (c->check_struct (this) && ((nRanges == 0) || (ranges[nRanges - 1]).sanitize (c))); in sanitize() 131 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 144 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 147 return_trace (c->check_struct (this) && ((nSups == 0) || (supps[nSups - 1]).sanitize (c))); in sanitize() 167 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 176 if (unlikely (!((fmt == 0)? u.format0.sanitize (c): u.format1.sanitize (c)))) in sanitize() [all …]
|
D | hb-aat-layout-trak-table.hh | 56 bool sanitize (hb_sanitize_context_t *c, const void *base, in sanitize() function 61 (valuesZ.sanitize (c, base, table_size)))); in sanitize() 140 bool sanitize (hb_sanitize_context_t *c, const void *base) const in sanitize() function 144 sizeTable.sanitize (c, base, nSizes) && in sanitize() 145 trackTable.sanitize (c, nTracks, base, nSizes))); in sanitize() 208 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 214 horizData.sanitize (c, this, this) && in sanitize() 215 vertData.sanitize (c, this, this))); in sanitize()
|
D | hb-aat-layout-kerx-table.hh | 78 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 134 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 137 return_trace (likely (pairs.sanitize (c))); in sanitize() 366 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 371 machine.sanitize (c))); in sanitize() 399 if (unlikely (!v->sanitize (&c->sanitizer))) return 0; in get_kerning() 434 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 438 leftClassTable.sanitize (c, this) && in sanitize() 439 rightClassTable.sanitize (c, this) && in sanitize() 613 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function [all …]
|
D | hb-aat-layout-morx-table.hh | 178 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 181 return_trace (machine.sanitize (c)); in sanitize() 261 if (!replacement->sanitize (&c->sanitizer) || !*replacement) in transition() 286 if (!replacement->sanitize (&c->sanitizer) || !*replacement) in transition() 326 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 331 if (unlikely (!machine.sanitize (c, &num_entries))) return_trace (false); in sanitize() 348 return_trace (substitutionTables.sanitize (c, this, num_lookups)); in sanitize() 510 if (unlikely (!actionData->sanitize (&c->sanitizer))) return false; in transition() 520 if (unlikely (!componentData.sanitize (&c->sanitizer))) return false; in transition() 530 if (unlikely (!ligatureData.sanitize (&c->sanitizer))) return false; in transition() [all …]
|
D | hb-ot-cff2-table.hh | 54 bool sanitize (hb_sanitize_context_t *c, unsigned int fdcount) const in sanitize() function 60 u.format0.sanitize (c, fdcount): in sanitize() 62 u.format3.sanitize (c, fdcount): in sanitize() 63 u.format4.sanitize (c, fdcount)))); in sanitize() 115 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 118 …ace (likely (c->check_struct (this)) && c->check_range (&varStore, size) && varStore.sanitize (c)); in sanitize() 413 bool sanitize (hb_sanitize_context_t *c) const in sanitize() function 442 if (unlikely (!topDictStr.sanitize (&sc))) { fini (); return; } in init() 455 if (((varStore != &Null(CFF2VariationStore)) && unlikely (!varStore->sanitize (&sc))) || in init() 456 (charStrings == &Null(CFF2CharStrings)) || unlikely (!charStrings->sanitize (&sc)) || in init() [all …]
|
/external/libcxx/test/support/ |
D | filesystem_dynamic_test_helper.py | 22 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/contrib/proto/python/kernel_tests/ |
D | decode_proto_op_test_base.py | 145 message_type, message_format, sanitize, argument 165 assert not sanitize 186 sanitize=sanitize) 217 sanitize=False) 229 sanitize=False, 257 sanitize=False) 275 sanitize=False) 287 sanitize=True) 290 def testCorruptProtobuf(self, sanitize): argument 308 sanitize=sanitize))
|