Home
last modified time | relevance | path

Searched +full:safer +full:- +full:buffer (Results 1 – 25 of 678) sorted by relevance

12345678910>>...28

/aosp_15_r20/external/rust/crates/v4l2r/lib/src/
Dioctl.rs1 //! This module provides safer versions of the V4L2 ioctls through simple functions working on a
2 //! `RawFd`, and safer variants of the main V4L2 structures. This module can be used directly, but
6 //! the input and output of the ioctl. This is quite error-prone as the user needs to remember
17 //! (and vice-versa) and include a validation step, to be used as return values.
20 //! its `type` field is set by user-space - the rest of the structure is to be filled by the
32 //! ) -> Result<O, GFmtError>;
40 //! returned non-zero, but the situation is not necessarily an error. For instance, `VIDIOC_DQBUF`
41 //! can return -EAGAIN if no buffer is available to dequeue, which is not an error and thus is
123 /// Utility function for sub-modules.
124 /// Constructs an owned String instance from a slice containing a nul-terminated
[all …]
/aosp_15_r20/external/cldr/tools/st-prom-exporter/
H A Dpackage-lock.json2 "name": "@unicode-org/st-prom-exporter",
9 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
10 …"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwa…
12 "mime-types": "~2.1.34",
16 "array-flatten": {
18 "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
19 …"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmh…
23 "resolved": "https://registry.npmjs.org/bent/-/bent-7.3.10.tgz",
24 …"integrity": "sha512-X2P2nGRWejGn6IjJfL4usOuAVMng1DdyuRhXLGOcUvEblBcLZenrSjlkgS8ob1s3tbq3mo1FDxKhC…
28 "is-stream": "^2.0.0"
[all …]
/aosp_15_r20/external/cldr/tools/scripts/tr-archive/
H A Dpackage-lock.json2 "name": "tr-archive",
8 "name": "tr-archive",
10 "license": "Unicode-3.0",
12 "@not-dalia/gfm-toc": "github:not-dalia/gfm-toc",
13 "anchor-js": "^5.0.0",
17 "marked-alert": "^2.0.1"
20 "node_modules/@not-dalia/gfm-toc": {
22 …"resolved": "git+ssh://[email protected]/not-dalia/gfm-toc.git#68f2db628606366b51b51a071c8bb87f490575…
25 "escape-html": "^1.0.3",
30 "gfm-toc": "bin/gfm-toc"
[all …]
/aosp_15_r20/external/ktfmt/website/
H A Dpackage-lock.json8 "clean-css": "^5.1.1",
9 "event-stream": "4.0.1",
11 "monaco-editor": "^0.23.0",
20 "resolved": "https://registry.npmjs.org/@gulpjs/messages/-/messages-1.1.0.tgz",
21 …"integrity": "sha512-Ys9sazDatyTgZVb4xPlDufLweJ/Os2uHWOv+Caxvy2O85JcnT4M3vc73bi8pdLWlv3fdWQz3pdI9t…
27 "node_modules/@gulpjs/to-absolute-glob": {
29 … "resolved": "https://registry.npmjs.org/@gulpjs/to-absolute-glob/-/to-absolute-glob-4.0.0.tgz",
30 …"integrity": "sha512-kjotm7XJrJ6v+7knhPaRgaT6q8F8K2jiafwYdNHLzmV0uGLuZY43FK6smNSHUPrhq5kX2slCUy+RG…
33 "is-negated-glob": "^1.0.0"
41 "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz",
[all …]
/aosp_15_r20/external/skia/modules/canvaskit/npm_build/
H A Dpackage-lock.json2 "name": "canvaskit-wasm",
8 "name": "canvaskit-wasm",
10 "license": "BSD-3-Clause",
12 "@definitelytyped/header-parser": "0.0.121",
18 "node_modules/@definitelytyped/header-parser": {
20 …"resolved": "https://registry.npmjs.org/@definitelytyped/header-parser/-/header-parser-0.0.121.tgz…
21 …"integrity": "sha512-78HY1J+QiwZPXFZQWb9gPQPxAMNg6/1e4gl7gL/8dmd17vVWLi3AGrLJoG8Pn1p8d7MF2rlPw/2AE…
24 "@definitelytyped/typescript-versions": "^0.0.121",
29 "node_modules/@definitelytyped/typescript-versions": {
31 …ed": "https://registry.npmjs.org/@definitelytyped/typescript-versions/-/typescript-versions-0.0.12…
[all …]
/aosp_15_r20/external/skia/tools/perf-canvaskit-puppeteer/
H A Dpackage-lock.json2 "name": "perf-canvaskit-puppeteer",
9 "resolved": "https://registry.npmjs.org/@types/node/-/node-14.0.5.tgz",
10 …"integrity": "sha512-90hiq6/VqtQgX8Sp0EzeIsv3r+ellbGj4URKj5j30tLlZvRUpnAe9YbYnjl3pJM93GyXU0tghHhvX…
15 "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.1.tgz",
16 …"integrity": "sha512-A1b8SU4D10uoPjwb0lnHmmu8wZhR9d+9o2PKBQT2jU5YPTKsxac6M2qGAdY7VcL+dHHhARVUDmeg0…
24 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
25 …"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwa…
27 "mime-types": "~2.1.34",
31 "agent-base": {
33 "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-5.1.1.tgz",
[all …]
/aosp_15_r20/external/skia/tools/run-wasm-gm-tests/
H A Dpackage-lock.json2 "name": "run-wasm-gm-tests",
9 "resolved": "https://registry.npmjs.org/@types/node/-/node-14.11.8.tgz",
10 …"integrity": "sha512-KPcKqKm5UKDkaYPTuXSx8wEP7vE9GnuaXIZKijwRYcePpZFDVuy2a57LarFKiORbHOuTOOwYzxVxc…
15 "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.1.tgz",
16 …"integrity": "sha512-A1b8SU4D10uoPjwb0lnHmmu8wZhR9d+9o2PKBQT2jU5YPTKsxac6M2qGAdY7VcL+dHHhARVUDmeg0…
24 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
25 …"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwa…
27 "mime-types": "~2.1.34",
31 "mime-db": {
33 "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
[all …]
/aosp_15_r20/external/skia/tools/skottie-wasm-perf/
H A Dpackage-lock.json2 "name": "skottie-wasm-perf",
8 "name": "skottie-wasm-perf",
12 "command-line-args": "^5.0.2",
13 "command-line-usage": "^5.0.3",
15 "lottie-web": "5.2.1",
16 "node-fetch": "^2.2.0",
23 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
24 …"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwa…
26 "mime-types": "~2.1.34",
33 "node_modules/agent-base": {
[all …]
/aosp_15_r20/external/skia/tools/lottie-web-perf/
H A Dpackage-lock.json2 "name": "lottie-web-perf",
8 "command-line-args": "^5.0.2",
9 "command-line-usage": "^5.0.3",
11 "lottie-web": "5.5.5",
12 "node-fetch": "^2.2.0",
18 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
19 …"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwa…
21 "mime-types": "~2.1.34",
28 "node_modules/agent-base": {
30 "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz",
[all …]
/aosp_15_r20/external/skia/tools/lottiecap/
H A Dpackage-lock.json8 "command-line-args": "^5.0.2",
9 "command-line-usage": "^5.0.3",
11 "lottie-web": "5.2.1",
12 "node-fetch": "^2.2.0",
18 "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
19 …"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwa…
21 "mime-types": "~2.1.34",
28 "node_modules/agent-base": {
30 "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz",
31 …"integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEE…
[all …]
/aosp_15_r20/external/okio/kotlin-js-store/
H A Dyarn.lock7 …resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5…
8 …integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9…
10 "@discoveryjs/json-ext@^0.5.0":
12 …resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b770…
13 …integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iP…
15 "@jridgewell/gen-mapping@^0.3.0":
17 …resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz#7e02e6eb5df…
18 …integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9…
20 "@jridgewell/set-array" "^1.0.1"
21 "@jridgewell/sourcemap-codec" "^1.4.10"
[all …]
/aosp_15_r20/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
H A DDownsampler.java80 …// 5MB. This is the max image header size we can handle, we preallocate a much smaller buffer but …
90 * Note - this method will throw an exception of a Bitmap with dimensions not matching
173 …// If we're rotating the image +-90 degrees, we need to downsample accordingly so the image width … in getRoundedSampleSize()
182 …// re-use Bitmaps, we mirror BitmapFactory's calculation here. For bug, see issue #224. For algori… in getRoundedSampleSize()
184 …l int powerOfTwoSampleSize = exactSampleSize == 0 ? 0 : Integer.highestOneBit(exactSampleSize - 1); in getRoundedSampleSize()
186 …// Although functionally equivalent to 0 for BitmapFactory, 1 is a safer default for our code than… in getRoundedSampleSize()
215 … // look at : https://groups.google.com/forum/#!msg/android-developers/Mp0MFVFi1Fo/e8ZQ9FGdWdEJ in shouldUsePool()
240 … // We probably only need 25, but this is safer (particularly since the buffer size is > 1024). in getConfig()
295 …// the possibility of not being able to fit enough of the header in the buffer to get the image si… in decodeStream()
296 … // that we don't fail to load images. The BufferedInputStream will create a new buffer of 2x the in decodeStream()
[all …]
/aosp_15_r20/external/pigweed/pw_string/public/pw_string/
H A Dutil.h7 // https://www.apache.org/licenses/LICENSE-2.0
17 /// @brief The `pw::string::*` functions provide safer alternatives to
43 const size_t copied = source.copy(dest.data(), dest.size() - 1); in CopyToSpan()
57 /// a `string_view` does not require null-termination.
67 /// @brief `pw::string::NullTerminatedLength` is a safer alternative to
68 /// `strlen` for calculating the null-terminated length of the
71 /// Like `strnlen_s` in C11, the scan for the null-terminator is bounded.
77 /// .. pw-status-codes::
79 /// OK: Returns the null-terminated length of the string excluding the null
82 /// OUT_OF_RANGE: The string is not null-terminated.
[all …]
H A Dformat.h7 // https://www.apache.org/licenses/LICENSE-2.0
18 /// The `pw::string::Format` functions are safer alternatives to `std::snprintf`
35 /// Writes a printf-style formatted string to the provided buffer, similarly to
43 /// .. pw-status-codes::
46 /// terminator. The buffer is always null-terminated unless it is empty.
48 /// RESOURCE_EXHAUSTED: The buffer was too small to fit the output.
54 StatusWithSize Format(span<char> buffer, const char* format, ...);
56 /// Writes a printf-style formatted string with va_list-packed arguments to the
57 /// provided buffer, similarly to `std::vsnprintf()`.
61 StatusWithSize FormatVaList(span<char> buffer,
[all …]
/aosp_15_r20/external/cronet/base/
H A Dcompiler_specific.h2 // Use of this source code is governed by a BSD-style license that can be
11 #error "Only clang-cl is supported on Windows, see https://crbug.com/988071"
19 // https://wg21.link/sd6#testing-for-the-presence-of-an-attribute-__has_cpp_attribute
74 // sure callers of the annotated function are never omitted from call-stacks.
107 // they need not have an address distinct from all other non-static data members
115 // https://devblogs.microsoft.com/cppblog/msvc-cpp20-and-the-std-cpp20-switch/#msvc-extensions-and-
116 // and clang-cl matches it for ABI compatibility reasons. We need to prefer
125 // Tells the compiler a function is using a printf-style format string.
126 // |format_param| is the one-based index of the format string parameter;
127 // |dots_param| is the one-based index of the "..." parameter.
[all …]
/aosp_15_r20/external/wpa_supplicant_8/src/wps/
H A Dwps.c2 * Wi-Fi Protected Setup
3 * Copyright (c) 2007-2009, Jouni Malinen <[email protected]>
30 * wps_init - Initialize WPS Registration protocol data
44 data->wps = cfg->wps; in wps_init()
45 data->registrar = cfg->registrar; in wps_init()
46 if (cfg->registrar) { in wps_init()
47 os_memcpy(data->uuid_r, cfg->wps->uuid, WPS_UUID_LEN); in wps_init()
49 os_memcpy(data->mac_addr_e, cfg->wps->dev.mac_addr, ETH_ALEN); in wps_init()
50 os_memcpy(data->uuid_e, cfg->wps->uuid, WPS_UUID_LEN); in wps_init()
52 if (cfg->pin) { in wps_init()
[all …]
/aosp_15_r20/external/perfetto/infra/perfetto.dev/
H A Dpnpm-lock.yaml25 fs-extra:
34 node-watch:
43 /@braintree/sanitize-[email protected]:
44 …resolution: {integrity: sha512-s3jaWicZd0pkP0jf5ysyHUI/RE7MHos6qlToFcGWXVp+ykHOy77OUMrfbgJ9it2C5bo…
48 …resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU+…
52 …resolution: {integrity: sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMg…
56 …resolution: {integrity: sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe…
60 …resolution: {integrity: sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39M…
64 …resolution: {integrity: sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWs…
71 …resolution: {integrity: sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNT…
[all …]
/aosp_15_r20/external/sg3_utils/include/
H A Dsg_pt_nvme.h5 * Copyright (c) 2017-2019 Douglas Gilbert.
7 * Use of this source code is governed by a BSD-style
10 * SPDX-License-Identifier: BSD-2-Clause
21 * is Copyright (c) 2011-2014, Intel Corporation. */
26 * structure. However what comes out in the data-in buffer (e.g. for the
29 * are exceptions, for example the EUI-64 identifiers in the Admin Identify
32 * Code online (e.g. nvme-cli at github.com) seems to favour packed
66 /* Using byte offsets and unaligned be/le copies safer than packed
140 uint32_t flags; /* OR-ed set of F_* flags */
145 /* Using byte offsets and unaligned be/le copies safer than packed
[all …]
/aosp_15_r20/external/clang/test/Analysis/
H A Dcstring-syntax.c1-analyze -analyzer-checker=unix.cstring.BadSizeArg -analyzer-store=region -Wno-strncat-size -Wno-s…
9 …AA", sizeof(dest) - 1); // expected-warning {{Potential buffer overflow. Replace with 'sizeof(dest… in testStrncat()
10 …dest, "AAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest)); // expected-warning {{Potential buffer overflo… in testStrncat()
11 … "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - strlen(dest)); // expected-warning {{Potential in testStrncat()
12 strncat(dest, src, sizeof(src)); // expected-warning {{Potential buffer overflow. Replace with}} in testStrncat()
/aosp_15_r20/external/pigweed/pw_string/size_report/
H A Dformat_single.cc7 // https://www.apache.org/licenses/LICENSE-2.0
16 // printf-style string to a buffer. The number of bytes written is returned.
42 char* buffer = get_buffer_1; in OutputStringsToBuffer() local
46 // The code for using pw::string::Format is much simpler and safer. in OutputStringsToBuffer()
48 span(buffer, buffer_size), "hello %s %d", get_buffer_2, get_size) in OutputStringsToBuffer()
56 std::snprintf(buffer, buffer_size, "hello %s %d", get_buffer_2, get_size); in OutputStringsToBuffer()
58 buffer[0] = '\0'; in OutputStringsToBuffer()
62 return buffer_size - 1; in OutputStringsToBuffer()
/aosp_15_r20/external/timezone-boundary-builder/
H A Dpackage-lock.json2 "name": "timezone-boundary-builder",
7 "@babel/code-frame": {
9 "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz",
10 …"integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3O…
16 "@babel/helper-validator-identifier": {
18 …solved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identif…
19 …"integrity": "sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhq…
24 "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz",
25 …"integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l…
28 "@babel/helper-validator-identifier": "^7.10.4",
[all …]
/aosp_15_r20/frameworks/base/core/java/android/util/apk/
H A DReadFileDataSource.java8 * http://www.apache.org/licenses/LICENSE-2.0
29 * of the file via raw read() syscall. This is slower than memory-mapping but safer.
60 final byte[] buffer = new byte[Math.min(size, CHUNK_SIZE)]; in feedIntoDataDigester()
64 pos < end; curSize = Math.min(end - pos, CHUNK_SIZE)) { in feedIntoDataDigester()
65 final int readSize = Os.pread(mFd, buffer, 0, (int) curSize, pos); in feedIntoDataDigester()
66 md.consume(ByteBuffer.wrap(buffer, 0, readSize)); in feedIntoDataDigester()
/aosp_15_r20/external/cronet/net/base/
H A Ddatagram_buffer.h2 // Use of this source code is governed by a BSD-style license that can be
15 // An IO buffer, (at least initially) specifically for use with the
23 // counting as in IOBuffers. The benefit is safer cancellation
52 // |buffer| to |buffers|. Caller retains owenership of |buffers| and |buffer|.
53 void Enqueue(const char* buffer, size_t buf_len, DatagramBuffers* buffers);
72 // |PostTask|. |Dequeue| is not expected to be thread-safe, so it
76 // cancellation (e.g. due to thread tear-down), the destructor will
94 void Set(const char* buffer, size_t buf_len);
/aosp_15_r20/external/skia/modules/canvaskit/
H A Dpackage-lock.json2 "name": "canvaskit-local",
8 "name": "canvaskit-local",
10 "license": "BSD-3-Clause",
12 "is-docker": "~1.1.0",
13 "jasmine-core": "~3.6.0",
15 "karma-chrome-launcher": "~3.1.0",
16 "karma-coverage": "~2.0.3",
17 "karma-jasmine": "~4.0.1",
21 "node_modules/@babel/code-frame": {
23 "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz",
[all …]
/aosp_15_r20/external/skia/modules/pathkit/
H A Dpackage-lock.json2 "name": "pathkit-local",
7 "@babel/code-frame": {
9 "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz",
10 …"integrity": "sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3O…
18 "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.10.tgz",
19 …"integrity": "sha512-eTAlQKq65zHfkHZV0sIVODCPGVgoo1HdBlbSLi9CqOzuZanMv2ihzY+4paiKr1mH+XmYESMAmJ/dp…
22 "@babel/code-frame": "^7.10.4",
24 "@babel/helper-module-transforms": "^7.12.1",
30 "convert-source-map": "^1.7.0",
32 "gensync": "^1.0.0-beta.1",
[all …]

12345678910>>...28