Home
last modified time | relevance | path

Searched refs:safe (Results 1 - 25 of 278) sorted by relevance

12345678910>>...12

/third_party/openssl/doc/
H A Dperlvars.pm14 $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
[all...]
/third_party/skia/tests/
H A DSafeMathTest.cpp17 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()
37 SkSafeMath safe; DEF_TEST() local
47 SkSafeMath safe; DEF_TEST() local
[all...]
/third_party/python/Lib/urllib/
H A Dparse.py824 in either of the specified safe set, or the always safe set.
828 def __init__(self, safe):
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):
862 unreserved chars ("always safe") nor the additional chars set via the
863 safe ar
[all...]
/third_party/skia/src/core/
H A DSkTextBlob.cpp41 SkSafeMath* safe) { in StorageSize()
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 in StorageSize()
39 StorageSize(uint32_t glyphCount, uint32_t textSize, SkTextBlob::GlyphPositioning positioning, SkSafeMath* safe) StorageSize() argument
99 SkSafeMath safe; NextUnchecked() local
107 PosCount(uint32_t glyphCount, SkTextBlob::GlyphPositioning positioning, SkSafeMath* safe) PosCount() argument
116 SkSafeMath safe; textSizePtr() local
392 SkSafeMath safe; reserve() local
448 SkSafeMath safe; mergeRun() local
488 SkSafeMath safe; allocInternal() local
698 SkSafeMath safe; MakeFromBuffer() local
[all...]
H A DSkMask.cpp59 SkSafeMath safe; in PrepareDestination() local
65 size_t dstW = safe.add(src.fBounds.width(), safe.add(radiusX, radiusX)); in PrepareDestination()
67 size_t dstH = safe.add(src.fBounds.height(), safe.add(radiusY, radiusY)); in PrepareDestination()
69 size_t toAlloc = safe.mul(dstW, dstH); in PrepareDestination()
72 if (!SkTFitsIn<int>(dstW) || !SkTFitsIn<int>(dstH) || toAlloc > INT_MAX || !safe) { in PrepareDestination()
H A DSkVertices.cpp42 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 in Sizes()
[all...]
H A DSkImageInfo.cpp63 SkSafeMath safe; in computeByteSize() local
64 size_t bytes = safe.add(safe.mul(safe.addInt(this->height(), -1), rowBytes), in computeByteSize()
65 safe.mul(this->width(), this->bytesPerPixel())); in computeByteSize()
71 return (safe.ok() && (bytes <= kMaxSigned32BitSize)) ? bytes : SIZE_MAX; in computeByteSize()
H A DSkPath_serial.cpp107 SkSafeMath safe; in writeToMemory() local
109 size = safe.add(size, safe.mul(pts, sizeof(SkPoint))); in writeToMemory()
110 size = safe.add(size, safe.mul(cnx, sizeof(SkScalar))); in writeToMemory()
111 size = safe.add(size, safe.mul(vbs, sizeof(uint8_t))); in writeToMemory()
112 size = safe.alignUp(size, 4); in writeToMemory()
113 if (!safe) { in writeToMemory()
H A DSkPaint.cpp267 static uint32_t unpack_v68(SkPaint* paint, uint32_t packed, SkSafeRange& safe) { in unpack_v68() argument
274 paint->setBlendMode(safe.checkLE(mode, SkBlendMode::kLastMode)); in unpack_v68()
279 paint->setStrokeCap(safe.checkLE(packed & 0x3, SkPaint::kLast_Cap)); in unpack_v68()
281 paint->setStrokeJoin(safe.checkLE(packed & 0x3, SkPaint::kLast_Join)); in unpack_v68()
283 paint->setStyle(safe.checkLE(packed & 0x3, SkPaint::kStrokeAndFill_Style)); in unpack_v68()
333 SkSafeRange safe; in Unflatten() local
334 unsigned flatFlags = unpack_v68(&paint, buffer.readUInt(), safe); in Unflatten()
360 if (!buffer.validate(safe.ok())) { in Unflatten()
/kernel/linux/linux-5.10/arch/arm/common/
H A Ddmabounce.c54 /* safe buffer info */
56 void *safe; member
104 /* allocate a 'safe' buffer and keep track of it */
137 buf->safe = dma_pool_alloc(pool->pool, GFP_ATOMIC, in alloc_safe_buffer()
140 buf->safe = dma_alloc_coherent(dev, size, &buf->safe_dma_addr, in alloc_safe_buffer()
144 if (buf->safe == NULL) { in alloc_safe_buffer()
165 /* determine if a buffer is from our "safe" pool */
199 dma_pool_free(buf->pool->pool, buf->safe, buf->safe_dma_addr); in free_safe_buffer()
201 dma_free_coherent(device_info->dev, buf->size, buf->safe, in free_safe_buffer()
263 buf->safe, bu in map_single()
[all...]
/third_party/node/deps/openssl/openssl/crypto/bn/
H A Dbn_prime.c22 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 prim in BN_generate_prime_ex2()
213 BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb) BN_generate_prime_ex() argument
478 probable_prime(BIGNUM *rnd, int bits, int safe, prime_t *mods, BN_CTX *ctx) probable_prime() argument
536 probable_prime_dh(BIGNUM *rnd, int bits, int safe, prime_t *mods, const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx) probable_prime_dh() argument
[all...]
/third_party/openssl/crypto/bn/
H A Dbn_prime.c22 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 prim in BN_generate_prime_ex2()
213 BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb) BN_generate_prime_ex() argument
478 probable_prime(BIGNUM *rnd, int bits, int safe, prime_t *mods, BN_CTX *ctx) probable_prime() argument
536 probable_prime_dh(BIGNUM *rnd, int bits, int safe, prime_t *mods, const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx) probable_prime_dh() argument
[all...]
/third_party/node/deps/npm/node_modules/ini/lib/
H A Dini.js29 // 5. Reduce the set to the longest `safe` key
30 // 6. Get the `safe` length
32 padToChars = safe(
39 .reduce((a, b) => safe(a).length >= safe(b).length ? a : b)
50 out += safe(`${k}${arraySuffix}`).padEnd(padToChars, ' ') + separator + safe(item) + eol
55 out += safe(k).padEnd(padToChars, ' ') + separator + safe(val) + eol
60 out = '[' + safe(op
[all...]
/third_party/node/deps/npm/node_modules/@pkgjs/parseargs/internal/
H A Dprimordials.js326 const makeSafe = (unsafe, safe) => {
332 if (!ReflectGetOwnPropertyDescriptor(safe.prototype, key)) {
346 ReflectDefineProperty(safe.prototype, key, desc);
350 copyProps(unsafe.prototype, safe.prototype);
352 copyProps(unsafe, safe);
354 ObjectSetPrototypeOf(safe.prototype, null);
355 ObjectFreeze(safe.prototype);
356 ObjectFreeze(safe);
357 return safe;
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/
H A Dqueue.h79 static __inline void FillpQueueSetProdSafe(FillpQueue *q, FILLP_BOOL safe) in FillpQueueSetProdSafe() argument
81 FillpLfRingSetProdSafe(&q->ring, safe); in FillpQueueSetProdSafe()
84 static __inline void FillpQueueSetConsSafe(FillpQueue *q, FILLP_BOOL safe) in FillpQueueSetConsSafe() argument
86 FillpLfRingSetConsSafe(&q->ring, safe); in FillpQueueSetConsSafe()
/third_party/ltp/testcases/network/mpls/
H A Dmpls_lib.sh43 tst_set_sysctl net.mpls.conf.lo.input 1 safe
44 tst_set_sysctl net.mpls.platform_labels $label safe
50 tst_set_sysctl net.ipv4.conf.all.rp_filter 2 safe
81 tst_set_sysctl net.mpls.conf.ltp_v0.input 1 safe
/third_party/openssl/demos/pkcs12/
H A Dpkread.c23 PKCS7 *safe; in find_friendly_name() local
31 safe = sk_PKCS7_value(safes, n); in find_friendly_name()
32 if (OBJ_obj2nid(safe->type) != NID_pkcs7_data in find_friendly_name()
33 || (bags = PKCS12_unpack_p7data(safe)) == NULL) in find_friendly_name()
/third_party/node/deps/openssl/openssl/apps/
H A Dprime.c33 {"safe", OPT_SAFE, '-',
34 "When used with -generate, generate a safe prime"},
46 int hex = 0, generate = 0, bits = 0, safe = 0, ret = 1; in prime_main() local
72 safe = 1; in prime_main()
107 if (!BN_generate_prime_ex(bn, bits, safe, NULL, NULL, NULL)) { in prime_main()
/third_party/openssl/apps/
H A Dprime.c33 {"safe", OPT_SAFE, '-',
34 "When used with -generate, generate a safe prime"},
46 int hex = 0, generate = 0, bits = 0, safe = 0, ret = 1; in prime_main() local
72 safe = 1; in prime_main()
107 if (!BN_generate_prime_ex(bn, bits, safe, NULL, NULL, NULL)) { in prime_main()
/third_party/node/lib/internal/per_context/
H A Dprimordials.js371 const makeSafe = (unsafe, safe) => {
377 if (!ReflectGetOwnPropertyDescriptor(safe.prototype, key)) {
391 ReflectDefineProperty(safe.prototype, key, { __proto__: null, ...desc });
395 copyProps(unsafe.prototype, safe.prototype);
397 copyProps(unsafe, safe);
399 ObjectSetPrototypeOf(safe.prototype, null);
400 ObjectFreeze(safe.prototype);
401 ObjectFreeze(safe);
402 return safe;
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
H A DCompactNotation.java68 boolean safe, in withLocaleData()
71 return new CompactHandler(this, locale, nsName, compactType, rules, buildReference, safe, parent); in withLocaleData()
89 boolean safe, in CompactHandler()
99 if (safe) { in CompactHandler()
111 /** Used by the safe code path */
62 withLocaleData( ULocale locale, String nsName, CompactType compactType, PluralRules rules, MutablePatternModifier buildReference, boolean safe, MicroPropsGenerator parent) withLocaleData() argument
82 CompactHandler( CompactNotation notation, ULocale locale, String nsName, CompactType compactType, PluralRules rules, MutablePatternModifier buildReference, boolean safe, MicroPropsGenerator parent) CompactHandler() argument
/third_party/node/test/parallel/
H A Dtest-buffer-safe-unsafe.js6 const safe = Buffer.alloc(10);
14 assert(isZeroFilled(safe));
16 // Test that unsafe allocations doesn't affect subsequent safe allocations
/kernel/linux/linux-5.10/drivers/usb/serial/
H A Dsafe_serial.c75 static bool safe = true; variable
85 module_param(safe, bool, 0);
86 MODULE_PARM_DESC(safe, "Turn Safe Encapsulation On/Off");
196 if (!safe) in safe_process_read_urb()
232 trailer_len = safe ? 2 : 0; in safe_prepare_write_buffer()
236 if (!safe) in safe_prepare_write_buffer()
/kernel/linux/linux-6.6/drivers/usb/serial/
H A Dsafe_serial.c75 static bool safe = true; variable
85 module_param(safe, bool, 0);
86 MODULE_PARM_DESC(safe, "Turn Safe Encapsulation On/Off");
196 if (!safe) in safe_process_read_urb()
232 trailer_len = safe ? 2 : 0; in safe_prepare_write_buffer()
236 if (!safe) in safe_prepare_write_buffer()
/third_party/python/Lib/test/
H A Dtest_pprint.py149 for safe in (2, 2.0, 2j, "abc", [3], (2,2), {3: 3}, b"def",
153 self.assertFalse(pprint.isrecursive(safe),
154 "expected not isrecursive for %r" % (safe,))
155 self.assertTrue(pprint.isreadable(safe),
156 "expected isreadable for %r" % (safe,))
158 self.assertFalse(pp.isrecursive(safe),
159 "expected not isrecursive for %r" % (safe,))
160 self.assertTrue(pp.isreadable(safe),
161 "expected isreadable for %r" % (safe,))
191 for safe i
[all...]

Completed in 15 milliseconds

12345678910>>...12