/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 | 46 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 …]
|
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-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-ot-stat-table.hh | 64 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 …]
|
D | hb-open-file.hh | 66 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 …]
|
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() 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()
|
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-common.hh | 181 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 …]
|
D | hb-aat-layout-opbd-table.hh | 42 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()
|
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 (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 …]
|
D | hb-aat-layout-lcar-table.hh | 63 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()
|
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() 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()
|
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() 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 …]
|
D | hb-ot-cff2-table.hh | 92 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 …]
|
D | hb-ot-color-colr-table.hh | 44 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/ |
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/python/kernel_tests/proto/ |
D | decode_proto_op_test_base.py | 150 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 …]
|