/external/clang/docs/ |
D | UndefinedBehaviorSanitizer.rst | 12 UBSan modifies the program at compile-time to catch various kinds of undefined 15 * Using misaligned or null pointer 16 * Signed integer overflow 17 * Conversion to, from, or between floating-point types which would 18 overflow the destination 20 See the full list of available :ref:`checks <ubsan-checks>` below. 22 UBSan has an optional run-time library which provides better error reporting. 33 Use ``clang++`` to compile and link your program with ``-fsanitize=undefined`` 38 .. code-block:: console 46 % clang++ -fsanitize=undefined test.cc [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/ARM/ |
D | noreturn.ll | 1 ; RUN: llc -O3 -o - %s | FileCheck %s 3 target triple = "thumbv7a-none-eabi" 6 ; CHECK-LABEL: @test1 7 ; CHECK-NOT: push 9 tail call void @overflow() #0 14 declare void @overflow() #0 17 ; CHECK-LABEL: @test2 18 ; CHECK-NOT: push 19 ; CHECK-NOT: pop 30 tail call void @overflow() #0 [all …]
|
/external/flac/libFLAC/ |
D | memory.c | 1 /* libFLAC - Free Lossless Audio Codec library 2 * Copyright (C) 2001-2009 Josh Coalson 3 * Copyright (C) 2011-2016 Xiph.Org Foundation 9 * - Redistributions of source code must retain the above copyright 12 * - Redistributions in binary form must reproduce the above copyright 16 * - Neither the name of the Xiph.org Foundation nor the names of its 52 /* align on 32-byte (256-bit) boundary */ in FLAC__memory_alloc_aligned() 54 *aligned_address = (void*)(((uintptr_t)x + 31L) & -32L); in FLAC__memory_alloc_aligned() 64 FLAC__int32 *pu; /* unaligned pointer */ in FLAC__memory_alloc_aligned_int32_array() 65 union { /* union needed to comply with C99 pointer aliasing rules */ in FLAC__memory_alloc_aligned_int32_array() [all …]
|
/external/clang/test/Sema/ |
D | builtins-overflow.c | 1 // RUN: %clang_cc1 -fsyntax-only -verify %s 5 // expected-warning@-1 {{defined as expected}} 14 …__builtin_add_overflow(); // expected-error {{too few arguments to function call, expected 3, hav… in test() 15 …__builtin_add_overflow(1, 1, 1, 1); // expected-error {{too many arguments to function call, expe… in test() 17 …__builtin_add_overflow(c, 1, &r); // expected-error {{operand argument to overflow builtin must b… in test() 18 …__builtin_add_overflow(1, c, &r); // expected-error {{operand argument to overflow builtin must b… in test() 19 …ltin_add_overflow(1, 1, 3); // expected-error {{result argument to overflow builtin must be a poi… in test() 20 …tin_add_overflow(1, 1, &f); // expected-error {{result argument to overflow builtin must be a poi… in test() 21 …tin_add_overflow(1, 1, &q); // expected-error {{result argument to overflow builtin must be a poi… in test()
|
/external/compiler-rt/lib/ubsan/ |
D | ubsan_handlers.h | 1 //===-- ubsan_handlers.h ----------------------------------------*- C++ -*-===// 8 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 38 /// pointer, a null pointer, or a pointer to insufficient storage for the 40 RECOVERABLE(type_mismatch, TypeMismatchData *Data, ValueHandle Pointer) 47 /// \brief Handle an integer addition overflow. 50 /// \brief Handle an integer subtraction overflow. 53 /// \brief Handle an integer multiplication overflow. 56 /// \brief Handle a signed integer overflow for a unary negate operator. 59 /// \brief Handle an INT_MIN/-1 overflow or division by zero. [all …]
|
D | ubsan_checks.inc | 1 //===-- ubsan_checks.inc ----------------------------------------*- C++ -*-===// 8 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 20 UBSAN_CHECK(GenericUB, "undefined-behavior", "undefined") 21 UBSAN_CHECK(NullPointerUse, "null-pointer-use", "null") 22 UBSAN_CHECK(MisalignedPointerUse, "misaligned-pointer-use", "alignment") 23 UBSAN_CHECK(InsufficientObjectSize, "insufficient-object-size", "object-size") 24 UBSAN_CHECK(SignedIntegerOverflow, "signed-integer-overflow", 25 "signed-integer-overflow") 26 UBSAN_CHECK(UnsignedIntegerOverflow, "unsigned-integer-overflow", [all …]
|
/external/python/cpython2/Doc/c-api/ |
D | long.rst | 6 -------------------- 89 interpreted according to the radix in *base*. If *pend* is non-*NULL*, 111 changes in your code for properly supporting 64-bit systems. 116 Create a Python integer or long integer from the pointer *p*. The pointer value 129 single: OverflowError (built-in exception) 133 and ``-1`` will be returned. 136 .. c:function:: long PyLong_AsLongAndOverflow(PyObject *pylong, int *overflow) 140 than :const:`LONG_MIN`, set *\*overflow* to ``1`` or ``-1``, 141 respectively, and return ``-1``; otherwise, set *\*overflow* to 143 MemoryError), then ``-1`` will be returned and *\*overflow* will [all …]
|
/external/perfetto/ui/src/assets/ |
D | sidebar.scss | 7 // http://www.apache.org/licenses/LICENSE-2.0 15 grid-area: sidebar; 16 z-index: 4; 17 background-color: #262f3c; 18 overflow-y: auto; 20 border-bottom: 1px solid #404854; 24 font-family: 'Raleway'; 25 height: var(--topbar-height); 26 line-height: var(--topbar-height); 27 vertical-align: middle; [all …]
|
D | common.scss | 7 // http://www.apache.org/licenses/LICENSE-2.0 15 --sidebar-width: 256px; 16 --topbar-height: 48px; 17 --monospace-font: 'Roboto Mono', monospace; 18 --track-shell-width: 250px; 19 --track-border-color: #00000025; 25 background-color $time ease, 26 border-color $time ease, 29 max-width $time ease, 30 max-height $time ease, [all …]
|
D | record.scss | 7 // http://www.apache.org/licenses/LICENSE-2.0 16 .record-page { 18 overflow-y: auto; 19 background-color: #fefefe; 23 // The always-visible centered box that has menu and sections on the right. 24 .record-container { 25 max-width: 900px; 26 min-height: 500px; 28 border-radius: 5px; 29 box-shadow: 0 1px 2px 0#aaa, 0 1px 3px 1px #eee; [all …]
|
/external/llvm/test/Other/ |
D | lint.ll | 1 ; RUN: opt -basicaa -lint -disable-output < %s 2>&1 | FileCheck %s 2 target datalayout = "e-p:64:64:64" 19 ; CHECK: Null pointer dereference 21 ; CHECK: Null pointer dereference 23 ; CHECK: Undef pointer dereference 25 ; CHECK: Undef pointer dereference 27 ; CHECK: All-ones pointer dereference 28 store i32 0, i32* inttoptr (i64 -1 to i32*) 29 ; CHECK: Address one pointer dereference 59 ; CHECK: Write to read-only memory [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Other/ |
D | lint.ll | 1 ; RUN: opt -basicaa -lint -disable-output < %s 2>&1 | FileCheck %s 2 target datalayout = "e-p:64:64:64" 19 ; CHECK: Null pointer dereference 21 ; CHECK: Null pointer dereference 23 ; CHECK: Undef pointer dereference 25 ; CHECK: Undef pointer dereference 27 ; CHECK: All-ones pointer dereference 28 store i32 0, i32* inttoptr (i64 -1 to i32*) 29 ; CHECK: Address one pointer dereference 59 ; CHECK: Write to read-only memory [all …]
|
/external/python/cpython3/Doc/c-api/ |
D | long.rst | 6 --------------- 13 On error, most ``PyLong_As*`` APIs return ``(return type)-1`` which cannot be 44 between ``-5`` and ``256``, when you create an int in that range you actually 47 undefined. :-) 89 is interpreted according to the radix in *base*. If *pend* is non-*NULL*, 93 non-zero decimal number raises a :exc:`ValueError`. If *base* is not ``0``, 105 .. deprecated-removed:: 3.3 4.0 106 Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using 122 Create a Python integer from the pointer *p*. The pointer value can be 131 single: OverflowError (built-in exception) [all …]
|
/external/icu/libandroidicu/include/unicode/ |
D | ucasemap.h | 6 * Copyright (C) 2005-2012, International Business Machines 11 * encoding: UTF-8 39 * ucasemap_utf8XYZ() functions operate directly on UTF-8 strings. 55 * @param locale ICU locale ID, used for language-dependent 56 * upper-/lower-/title-casing according to the Unicode standard. 62 * @param pErrorCode Must be a valid pointer to an error code value, 64 * @return Pointer to a UCaseMap service object, if successful. 89 * "Smart pointer" class, closes a UCaseMap via ucasemap_close(). 103 * Get the locale ID that is used for language-dependent case mappings. 121 * Set the locale ID that is used for language-dependent case mappings. [all …]
|
/external/icu/icu4c/source/common/unicode/ |
D | ucasemap.h | 6 * Copyright (C) 2005-2012, International Business Machines 11 * encoding: UTF-8 39 * ucasemap_utf8XYZ() functions operate directly on UTF-8 strings. 55 * @param locale ICU locale ID, used for language-dependent 56 * upper-/lower-/title-casing according to the Unicode standard. 62 * @param pErrorCode Must be a valid pointer to an error code value, 64 * @return Pointer to a UCaseMap service object, if successful. 89 * "Smart pointer" class, closes a UCaseMap via ucasemap_close(). 103 * Get the locale ID that is used for language-dependent case mappings. 121 * Set the locale ID that is used for language-dependent case mappings. [all …]
|
/external/v8/tools/turbolizer/ |
D | turbo-visualizer.css | 1 .visible-transition { 2 transition-delay: 0s; 3 transition-duration: 1s; 4 transition-property: all; 5 transition-timing-function: ease; 8 .collapse-pane { 12 margin-bottom: 0.5em; 13 margin-right: 0.5em; 14 margin-left: 0.5em; 15 border-radius: 5px; [all …]
|
/external/clang/test/Analysis/ |
D | return-ptr-range.cpp | 1 // RUN: %clang_cc1 -analyze -analyzer-checker=alpha.security.ReturnPtrRange -verify %s 13 return arr; // no-warning in test_element_index_lifetime() 15 …return ptr; // expected-warning{{Returned pointer value points outside the original object (potent… in test_element_index_lifetime() 24 return arr; // no-warning in test_element_index_lifetime_with_local_ptr() 26 …return local_ptr; // expected-warning{{Returned pointer value points outside the original object (… in test_element_index_lifetime_with_local_ptr()
|
D | cstring-syntax.c | 1 …-analyze -analyzer-checker=unix.cstring.BadSizeArg -analyzer-store=region -Wno-strncat-size -Wno-s… 9 …AAAAAAAAAAA", sizeof(dest) - 1); // expected-warning {{Potential buffer overflow. Replace with 'si… in testStrncat() 10 … "AAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest)); // expected-warning {{Potential buffer overflow. Re… in testStrncat() 11 …AAAAAAAAAAAAAAAAAAAAAAAAAAAA", sizeof(dest) - strlen(dest)); // expected-warning {{Potential buffe… in testStrncat() 12 strncat(dest, src, sizeof(src)); // expected-warning {{Potential buffer overflow. Replace with}} in testStrncat()
|
/external/mesa3d/src/util/ |
D | ralloc.h | 33 * discarding of an entire tree/sub-tree of allocations by calling 43 * a non-permissive open source license. 84 * While any ralloc'd pointer can be used as a context, sometimes it is useful 98 * simply allocates storage for \p size bytes and returns the pointer, 104 * Allocate zero-initialized memory chained off of the given context. 111 * Resize a piece of ralloc-managed memory, preserving data. 114 * memory. Instead, it resizes it to a 0-byte ralloc context, just like 119 * \param ptr Pointer to the memory to be resized. May be NULL. 132 * More than a convenience function, this also checks for integer overflow when 145 * Allocate a zero-initialized array chained off the given context. [all …]
|
/external/icu/icu4c/source/common/ |
D | putilimp.h | 6 * Copyright (C) 1997-2016, International Business Machines 26 * Nearly all CPUs and compilers implement a right-shift of a signed integer 29 * For example, (int32_t)0xfff5fff3>>4 becomes 0xffff5fff and -1>>1=-1. 33 * The signed value can be retrieved by simple right-shifting. 37 * However, the C standard allows compilers to implement a right-shift of a signed integer 39 * For example, (int32_t)0xfff5fff3>>4 becomes 0x0fff5fff and -1>>1=0x7fffffff. 49 * Nearly all CPUs & compilers implement a right-shift of a signed integer 64 * "On XSI-conformant systems, the intptr_t and uintptr_t types are required; 90 # define U_NL_LANGINFO_CODESET -1 221 * Defines whether Clang c11 style built-in atomics are available. [all …]
|
/external/pdfium/third_party/libopenjpeg20/ |
D | 0034-opj_malloc.patch | 1 diff --git a/third_party/libopenjpeg20/opj_malloc.h b/third_party/libopenjpeg20/opj_malloc.h 3 --- a/third_party/libopenjpeg20/opj_malloc.h 5 @@ -31,8 +31,6 @@ 9 - 10 -#include <stddef.h> 14 @@ -52,7 +50,16 @@ Allocate an uninitialized memory block 16 …@return Returns a void pointer to the allocated space, or NULL if there is insufficient memory ava… 18 -void * opj_malloc(size_t size); 22 +/* prevent assertion on overflow for MSVC */ 24 +#define opj_malloc(size) ((size_t)(size) >= (size_t)-0x100 ? NULL : malloc(size)) [all …]
|
/external/python/cpython3/Python/ |
D | mystrtoul.c | 16 /* Static overflow check values for bases 2 through 36. 18 * i * base doesn't overflow unsigned long. 60 /* maximum digits that can't ever overflow for bases 2 through 36, 66 0, 0, 32, 20, 16, 13, 12, 11, 10, 10, /* 0 - 9 */ 67 9, 9, 8, 8, 8, 8, 8, 7, 7, 7, /* 10 - 19 */ 68 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, /* 20 - 29 */ 69 6, 6, 6, 6, 6, 6, 6}; /* 30 - 36 */ 73 0, 0, 64, 40, 32, 27, 24, 22, 21, 20, /* 0 - 9 */ 74 19, 18, 17, 17, 16, 16, 16, 15, 15, 15, /* 10 - 19 */ 75 14, 14, 14, 14, 13, 13, 13, 13, 13, 13, /* 20 - 29 */ [all …]
|
/external/python/cpython2/Python/ |
D | mystrtoul.c | 16 /* Static overflow check values for bases 2 through 36. 18 * i * base doesn't overflow unsigned long. 60 /* maximum digits that can't ever overflow for bases 2 through 36, 66 0, 0, 32, 20, 16, 13, 12, 11, 10, 10, /* 0 - 9 */ 67 9, 9, 8, 8, 8, 8, 8, 7, 7, 7, /* 10 - 19 */ 68 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, /* 20 - 29 */ 69 6, 6, 6, 6, 6, 6, 6}; /* 30 - 36 */ 73 0, 0, 64, 40, 32, 27, 24, 22, 21, 20, /* 0 - 9 */ 74 19, 18, 17, 17, 16, 16, 16, 15, 15, 15, /* 10 - 19 */ 75 14, 14, 14, 14, 13, 13, 13, 13, 13, 13, /* 20 - 29 */ [all …]
|
/external/clang/include/clang/Basic/ |
D | DiagnosticGroups.td | 1 //==--- DiagnosticGroups.td - Diagnostic Group Definitions ----------------===// 8 //===----------------------------------------------------------------------===// 10 def ImplicitFunctionDeclare : DiagGroup<"implicit-function-declaration">; 11 def ImplicitInt : DiagGroup<"implicit-int">; 21 def AbsoluteValue : DiagGroup<"absolute-value">; 22 def AddressOfTemporary : DiagGroup<"address-of-temporary">; 23 def : DiagGroup<"aggregate-return">; 24 def GNUAlignofExpression : DiagGroup<"gnu-alignof-expression">; 25 def AmbigMemberTemplate : DiagGroup<"ambiguous-member-template">; 26 def GNUAnonymousStruct : DiagGroup<"gnu-anonymous-struct">; [all …]
|
/external/deqp-deps/SPIRV-Tools/source/util/ |
D | parse_number.h | 7 // http://www.apache.org/licenses/LICENSE-2.0 23 #include "spirv-tools/libspirv.h" 99 // specified as a hexadecimal number, then the overflow bits should be zero. 100 // If it was hex and the target type is signed, then return the sign-extended 101 // value through the updated_value_for_hex pointer argument. On failure, 108 // - magnitude bits, where the magnitude of the number would be stored if in CheckRangeAndIfHexThenSignExtend() 109 // we were using a signed-magnitude representation. in CheckRangeAndIfHexThenSignExtend() 110 // - an optional sign bit in CheckRangeAndIfHexThenSignExtend() 111 // - overflow bits, up to bit 63 of a 64-bit number in CheckRangeAndIfHexThenSignExtend() 113 // Type Overflow Sign Magnitude in CheckRangeAndIfHexThenSignExtend() [all …]
|