| /third_party/skia/tests/ |
| D | SafeMathTest.cpp | 17 SkSafeMath safe; in DEF_TEST() local 18 REPORTER_ASSERT(r, safe.add(halfMax, halfMax) == 2 * halfMax); in DEF_TEST() 19 REPORTER_ASSERT(r, safe); in DEF_TEST() 20 REPORTER_ASSERT(r, safe.add(halfMax, halfMaxPlus1) == max); in DEF_TEST() 21 REPORTER_ASSERT(r, safe); in DEF_TEST() 22 REPORTER_ASSERT(r, safe.add(max, 1) == 0); in DEF_TEST() 23 REPORTER_ASSERT(r, !safe); in DEF_TEST() 27 SkSafeMath safe; in DEF_TEST() local 28 (void) safe.add(max, max); in DEF_TEST() 29 REPORTER_ASSERT(r, !safe); in DEF_TEST() [all …]
|
| /third_party/node/deps/openssl/openssl/external/perl/Text-Template-1.56/t/ |
| D | safe.t | 11 unless (eval { require Safe; 1 }) { 12 plan skip_all => 'Safe.pm is required for this test'; 32 my $c = Safe->new or die; 43 my $text2 = $template1->fill_in(SAFE => $c); 46 my $text3 = $template2->fill_in(SAFE => $c); 49 # (4) Safe and non-safe fills of different template objects with the 53 # uses package main, while the safe fill uses the secret safe package. 54 # We could alias the secret safe package to be identical to main, 55 # but that wouldn't be safe. If you want the aliasing, you have to 58 # (5) Safe and non-safe fills of the same template object [all …]
|
| D | safe2.t | 10 unless (eval { require Safe; 1 }) { 11 plan skip_all => 'Safe.pm is required for this test'; 19 my $c = Safe->new or die; 22 $c->reval('$P = "safe root"'); 40 # (3) When no package is specified in safe mode, we should use the 41 # default safe root. 42 $text = $t->fill_in(SAFE => $c); 43 is $text, 'package is safe root'; 45 # (4) When a package is specified in safe mode, we should use the 46 # default safe root, after aliasing to the specified package [all …]
|
| D | safe3.t | 9 unless (eval { require Safe; 1 }) { 10 plan skip_all => 'Safe.pm is required for this test'; 18 # Test the OUT feature with safe compartments 34 my $c = Safe->new; 40 SAFE => $c) or die; 45 SAFE => $c) or die; 59 # is never undefined after it is used once if you are using the SAFE 70 my $s = Safe->new; 76 my $r = $o->fill_in(SAFE => $s);
|
| /third_party/openssl/external/perl/Text-Template-1.56/t/ |
| D | safe.t | 11 unless (eval { require Safe; 1 }) { 12 plan skip_all => 'Safe.pm is required for this test'; 32 my $c = Safe->new or die; 43 my $text2 = $template1->fill_in(SAFE => $c); 46 my $text3 = $template2->fill_in(SAFE => $c); 49 # (4) Safe and non-safe fills of different template objects with the 53 # uses package main, while the safe fill uses the secret safe package. 54 # We could alias the secret safe package to be identical to main, 55 # but that wouldn't be safe. If you want the aliasing, you have to 58 # (5) Safe and non-safe fills of the same template object [all …]
|
| D | safe2.t | 10 unless (eval { require Safe; 1 }) { 11 plan skip_all => 'Safe.pm is required for this test'; 19 my $c = Safe->new or die; 22 $c->reval('$P = "safe root"'); 40 # (3) When no package is specified in safe mode, we should use the 41 # default safe root. 42 $text = $t->fill_in(SAFE => $c); 43 is $text, 'package is safe root'; 45 # (4) When a package is specified in safe mode, we should use the 46 # default safe root, after aliasing to the specified package [all …]
|
| D | safe3.t | 9 unless (eval { require Safe; 1 }) { 10 plan skip_all => 'Safe.pm is required for this test'; 18 # Test the OUT feature with safe compartments 34 my $c = Safe->new; 40 SAFE => $c) or die; 45 SAFE => $c) or die; 59 # is never undefined after it is used once if you are using the SAFE 70 my $s = Safe->new; 76 my $r = $o->fill_in(SAFE => $s);
|
| /third_party/openssl/doc/ |
| D | perlvars.pm | 14 $OpenSSL::safe::opt_v_synopsis = "" 45 $OpenSSL::safe::opt_v_item = "" 60 $OpenSSL::safe::opt_x_synopsis = "" 67 $OpenSSL::safe::opt_x_item = "" 76 $OpenSSL::safe::opt_name_synopsis = "" 78 $OpenSSL::safe::opt_name_item = "" 85 $OpenSSL::safe::opt_r_synopsis = "" 88 $OpenSSL::safe::opt_r_item = "" 94 $OpenSSL::safe::opt_provider_synopsis = "" 98 $OpenSSL::safe::opt_provider_item = "" [all …]
|
| /third_party/curl/docs/libcurl/ |
| D | libcurl-thread.md | 17 libcurl is thread safe but has no internal thread synchronization. You may have 33 Note that some items are specifically documented as not thread-safe in the 38 All current TLS libraries libcurl supports are thread-safe. OpenSSL 1.1.0+ can 67 safe. It is important that libcurl can find and use thread safe versions of 69 safe. Some operating systems are known to have faulty thread 77 These functions are thread-safe since libcurl 7.84.0 if 81 If these functions are not thread-safe and you are using libcurl with multiple 85 fail-safe initialization that takes place the first time 92 replacements, must be thread safe. You can use curl_global_init_mem(3) 95 # Non-safe functions [all …]
|
| /third_party/openssl/doc/man1/ |
| D | openssl-srp.pod.in | 2 {- OpenSSL::safe::output_do_not_edit_headers(); -} 23 {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_r_synopsis -} 24 {- $OpenSSL::safe::opt_provider_synopsis -} 25 {- $OpenSSL::safe::opt_config_synopsis -} 93 {- $OpenSSL::safe::opt_engine_item -} 95 {- $OpenSSL::safe::opt_r_item -} 97 {- $OpenSSL::safe::opt_provider_item -} 99 {- $OpenSSL::safe::opt_config_item -} 101 {- $OpenSSL::safe::opt_r_synopsis -}
|
| D | openssl-verify.pod.in | 2 {- OpenSSL::safe::output_do_not_edit_headers(); -} 19 {- $OpenSSL::safe::opt_name_synopsis -} 20 {- $OpenSSL::safe::opt_trust_synopsis -} 21 {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_v_synopsis -} 22 {- $OpenSSL::safe::opt_provider_synopsis -} 78 {- $OpenSSL::safe::opt_name_item -} 80 {- $OpenSSL::safe::opt_engine_item -} 87 {- $OpenSSL::safe::opt_trust_item -} 89 {- $OpenSSL::safe::opt_v_item -} 91 {- $OpenSSL::safe::opt_provider_item -}
|
| D | openssl-rand.pod.in | 2 {- OpenSSL::safe::output_do_not_edit_headers(); -} 15 {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_r_synopsis -} 16 {- $OpenSSL::safe::opt_provider_synopsis -} 50 {- $OpenSSL::safe::opt_engine_item -} 52 {- $OpenSSL::safe::opt_r_item -} 54 {- $OpenSSL::safe::opt_provider_item -}
|
| D | openssl-prime.pod.in | 2 {- OpenSSL::safe::output_do_not_edit_headers(); -} 15 [B<-safe>] 16 {- $OpenSSL::safe::opt_provider_synopsis -} 48 =item B<-safe> 50 When used with B<-generate>, generates a "safe" prime. If the number 53 {- $OpenSSL::safe::opt_provider_item -}
|
| /third_party/openssl/doc/man7/ |
| D | EVP_PKEY-DH.pod | 11 "safe" domain parameters that are associated with approved named safe-prime 14 applications that cannot be upgraded to use the approved safe-prime groups. 35 Sets or gets a string that associates a B<DH> or B<DHX> named safe prime group 69 Used for DH generation of safe primes using the old safe prime generator code. 71 It is recommended to use a named safe prime group instead, if domain parameter 74 Randomly generated safe primes are not allowed by FIPS, so setting this value 75 for the OpenSSL FIPS provider will instead choose a named safe prime group 104 This specifies that a named safe prime name will be chosen using the "pbits" 109 A safe prime generator. See the "safeprime-generator" type above. 141 named safe prime group instead. [all …]
|
| /third_party/python/Doc/library/ |
| D | xml.rst | 68 external entity expansion Safe (5) Safe (2) Safe (3) Safe (5) … 69 `DTD`_ retrieval Safe (5) Safe Safe Safe (5) … 70 decompression bomb Safe Safe Safe Safe …
|
| /third_party/rust/crates/minimal-lexical/src/ |
| D | stackvec.rs | 45 /// Safe as long as `len` is less than `BIGINT_LIMBS`. 76 /// Safe if `self.len() < self.capacity()`. 80 // SAFETY: safe, capacity is less than the current size. in push_unchecked() 91 // SAFETY: safe, capacity is less than the current size. in try_push() 103 /// Safe if `self.len() > 0`. 107 // SAFETY: safe if `self.length > 0`. in pop_unchecked() 108 // We have a trivial drop and copy, so this is safe. in pop_unchecked() 119 // SAFETY: safe, since `self.len() > 0`. in pop() 128 /// Safe if `self.len() + slc.len() <= self.capacity()`. 135 // SAFETY: safe if `self.len() + slc.len() <= self.capacity()`. in extend_unchecked() [all …]
|
| /third_party/skia/src/core/ |
| D | SkTextBlob.cpp | 41 SkSafeMath* safe) { in StorageSize() argument 44 auto glyphSize = safe->mul(glyphCount, sizeof(uint16_t)), in StorageSize() 45 posSize = safe->mul(PosCount(glyphCount, positioning, safe), sizeof(SkScalar)); in StorageSize() 49 size = safe->add(size, safe->alignUp(glyphSize, 4)); in StorageSize() 50 size = safe->add(size, posSize); in StorageSize() 53 size = safe->add(size, sizeof(uint32_t)); in StorageSize() 54 size = safe->add(size, safe->mul(glyphCount, sizeof(uint32_t))); in StorageSize() 55 size = safe->add(size, textSize); in StorageSize() 58 return safe->alignUp(size, sizeof(void*)); in StorageSize() 99 SkSafeMath safe; in NextUnchecked() local [all …]
|
| D | SkVertices.cpp | 42 SkSafeMath safe; in Sizes() local 44 fVSize = safe.mul(desc.fVertexCount, sizeof(SkPoint)); in Sizes() 45 fTSize = desc.fHasTexs ? safe.mul(desc.fVertexCount, sizeof(SkPoint)) : 0; in Sizes() 46 fCSize = desc.fHasColors ? safe.mul(desc.fVertexCount, sizeof(SkColor)) : 0; in Sizes() 49 fISize = safe.mul(desc.fIndexCount, sizeof(uint16_t)); in Sizes() 68 fISize = safe.mul(numFanTris, 3 * sizeof(uint16_t)); in Sizes() 71 fTotal = safe.add(sizeof(SkVertices), in Sizes() 72 safe.add(fVSize, in Sizes() 73 safe.add(fTSize, in Sizes() 74 safe.add(fCSize, in Sizes() [all …]
|
| /third_party/node/deps/openssl/openssl/crypto/bn/ |
| D | bn_prime.c | 22 static int probable_prime(BIGNUM *rnd, int bits, int safe, prime_t *mods, 24 static int probable_prime_dh(BIGNUM *rnd, int bits, int safe, prime_t *mods, 123 int BN_generate_prime_ex2(BIGNUM *ret, int bits, int safe, in BN_generate_prime_ex2() argument 137 } else if (add == NULL && safe && bits < 6 && bits != 3) { in BN_generate_prime_ex2() 139 * The smallest safe prime (7) is three bits. in BN_generate_prime_ex2() 140 * But the following two safe primes with less than 6 bits (11, 23) in BN_generate_prime_ex2() 160 if (!probable_prime(ret, bits, safe, mods, ctx)) in BN_generate_prime_ex2() 163 if (!probable_prime_dh(ret, bits, safe, mods, add, rem, ctx)) in BN_generate_prime_ex2() 171 if (!safe) { in BN_generate_prime_ex2() 179 * for "safe prime" generation, check that (p-1)/2 is prime. Since a in BN_generate_prime_ex2() [all …]
|
| /third_party/openssl/crypto/bn/ |
| D | bn_prime.c | 22 static int probable_prime(BIGNUM *rnd, int bits, int safe, prime_t *mods, 24 static int probable_prime_dh(BIGNUM *rnd, int bits, int safe, prime_t *mods, 123 int BN_generate_prime_ex2(BIGNUM *ret, int bits, int safe, in BN_generate_prime_ex2() argument 137 } else if (add == NULL && safe && bits < 6 && bits != 3) { in BN_generate_prime_ex2() 139 * The smallest safe prime (7) is three bits. in BN_generate_prime_ex2() 140 * But the following two safe primes with less than 6 bits (11, 23) in BN_generate_prime_ex2() 160 if (!probable_prime(ret, bits, safe, mods, ctx)) in BN_generate_prime_ex2() 163 if (!probable_prime_dh(ret, bits, safe, mods, add, rem, ctx)) in BN_generate_prime_ex2() 171 if (!safe) { in BN_generate_prime_ex2() 179 * for "safe prime" generation, check that (p-1)/2 is prime. Since a in BN_generate_prime_ex2() [all …]
|
| /third_party/node/deps/icu-small/source/i18n/ |
| D | number_formatimpl.h | 31 * Builds a "safe" MicroPropsGenerator, which is thread-safe and can be used repeatedly. 59 * Evaluates the "safe" MicroPropsGenerator created by "fromMacros". 69 * Like getPrefixSuffixStatic() but uses the safe compiled object. 126 NumberFormatterImpl(const MacroProps ¯os, bool safe, UErrorCode &status); 148 * @param safe 149 …* If true, the returned MicroPropsGenerator will be thread-safe. If false, the returned… 150 …* <em>not</em> be thread-safe, intended for a single "one-shot" use only. Building the … 154 macrosToMicroGenerator(const MacroProps ¯os, bool safe, UErrorCode &status);
|
| /third_party/icu/icu4c/source/i18n/ |
| D | number_formatimpl.h | 31 * Builds a "safe" MicroPropsGenerator, which is thread-safe and can be used repeatedly. 59 * Evaluates the "safe" MicroPropsGenerator created by "fromMacros". 69 * Like getPrefixSuffixStatic() but uses the safe compiled object. 118 NumberFormatterImpl(const MacroProps ¯os, bool safe, UErrorCode &status); 140 * @param safe 141 …* If true, the returned MicroPropsGenerator will be thread-safe. If false, the returned… 142 …* <em>not</em> be thread-safe, intended for a single "one-shot" use only. Building the … 146 macrosToMicroGenerator(const MacroProps ¯os, bool safe, UErrorCode &status);
|
| /third_party/skia/third_party/externals/icu/source/i18n/ |
| D | number_formatimpl.h | 31 * Builds a "safe" MicroPropsGenerator, which is thread-safe and can be used repeatedly. 53 * Evaluates the "safe" MicroPropsGenerator created by "fromMacros". 63 * Like getPrefixSuffixStatic() but uses the safe compiled object. 118 NumberFormatterImpl(const MacroProps ¯os, bool safe, UErrorCode &status); 140 * @param safe 141 …* If true, the returned MicroPropsGenerator will be thread-safe. If false, the returned… 142 …* <em>not</em> be thread-safe, intended for a single "one-shot" use only. Building the … 146 macrosToMicroGenerator(const MacroProps ¯os, bool safe, UErrorCode &status);
|
| /third_party/python/Lib/urllib/ |
| D | parse.py | 824 in either of the specified safe set, or the always safe set. 828 def __init__(self, safe): argument 829 """safe: bytes object.""" 830 self.safe = _ALWAYS_SAFE.union(safe) 837 res = chr(b) if b in self.safe else '%{:02X}'.format(b) 841 def quote(string, safe='/', encoding=None, errors=None): argument 862 unreserved chars ("always safe") nor the additional chars set via the 863 safe arg. 865 The default for the safe arg is '/'. The character is reserved, but in 872 string and safe may be either str or bytes objects. encoding and errors [all …]
|
| /third_party/mbedtls/docs/architecture/psa-thread-safety/ |
| D | psa-thread-safety.md | 3 Currently, PSA Crypto API calls in Mbed TLS releases are not thread-safe. 5 ….io/psa-api/crypto/1.1/api/library/library.html#c.psa_crypto_init) thread-safe has been implemente… 10 …cribed in the [Key slot states](#key-slot-states) section. They guarantee safe concurrent access t… 14 …g system has now been made thread-safe. Tests can now spin up multiple threads, see [Thread-safe t… 19 The other functions in the PSA Crypto API are planned to be made thread-safe in future, but current… 37 In general, a system is thread-safe if any valid set of concurrent calls is handled as if the effec… 107 …safe (`mbedtls_psa_random_init` and `mbedtls_psa_random_seed` are only thread-safe when called whi… 115 …/crypto/1.1/api/library/library.html#c.psa_crypto_init). This is a thread-safe function, and multi… 127 There is no thread-safe way to free all PSA resources. This is because any such operation would nee… 133 …re is discussion of: techniques, internal properties for enforcing thread-safe access, how the sys… [all …]
|