/external/compiler-rt/test/asan/TestCases/Windows/ |
stack_array_left_oob.cc | 8 char buffer[42]; local 9 buffer[subscript] = 42; 10 // CHECK: AddressSanitizer: stack-buffer-underflow on address [[ADDR:0x[0-9a-f]+]] 15 // CHECK: 'buffer' <== Memory access at offset [[OFFSET]] underflows this variable
|
stack_array_right_oob.cc | 8 char buffer[42]; local 9 buffer[subscript] = 42; 10 // CHECK: AddressSanitizer: stack-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 15 // CHECK: 'buffer' <== Memory access at offset [[OFFSET]] overflows this variable
|
stack_array_sanity.cc | 8 char buffer[42]; local 9 buffer[subscript] = 42;
|
dll_poison_unpoison.cc | 17 char buffer[256]; local 18 should_not_crash(&buffer[0]); 19 __asan_poison_memory_region(buffer, 128); 20 should_not_crash(&buffer[192]); 21 __asan_unpoison_memory_region(buffer, 64); 22 should_not_crash(&buffer[32]); 24 should_crash(&buffer[96]); 33 // CHECK: 'buffer' <== Memory access at offset [[OFFSET]] is inside this variable
|
dll_operator_array_new_with_dtor_left_oob.cc | 12 C *buffer = new C[42]; local 13 buffer[-2].x = 42; 14 // CHECK: AddressSanitizer: heap-buffer-overflow on address [[ADDR:0x[0-9a-f]+]] 31 delete [] buffer;
|
/external/syslinux/com32/samples/ |
fancyhello.c | 28 char buffer[1024]; local 36 fgets(buffer, sizeof buffer, stdin); 37 if (!strncmp(buffer, "exit", 4)) 39 printf("\033[1m:\033[0m %s", buffer);
|
/system/bt/embdrv/sbc/decoder/srce/ |
synthesis-8-generated.c | 51 SBC_BUFFER_T const* RESTRICT buffer, 55 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(8235, buffer[12])) >> 3; 56 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(-23167, buffer[20])) >> 3; 57 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(26479, buffer[28])) >> 2; 58 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(-17397, buffer[36])) << 1; 59 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(9399, buffer[44])) << 3; 60 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(17397, buffer[52])) << 1; 61 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(26479, buffer[60])) >> 2; 62 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(23167, buffer[68])) >> 3; 63 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(8235, buffer[76])) >> 3 [all...] |
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/ |
voip_metric.cc | 45 void VoipMetric::Parse(const uint8_t* buffer) { 46 RTC_DCHECK(buffer[0] == kBlockType); 47 // reserved = buffer[1]; 48 RTC_DCHECK(ByteReader<uint16_t>::ReadBigEndian(&buffer[2]) == kBlockLength); 49 ssrc_ = ByteReader<uint32_t>::ReadBigEndian(&buffer[4]); 50 voip_metric_.lossRate = buffer[8]; 51 voip_metric_.discardRate = buffer[9]; 52 voip_metric_.burstDensity = buffer[10]; 53 voip_metric_.gapDensity = buffer[11]; 54 voip_metric_.burstDuration = ByteReader<uint16_t>::ReadBigEndian(&buffer[12]) [all...] |
/external/compiler-rt/test/safestack/ |
buffer-copy-vla.c | 12 char buffer[i]; local 14 // check that we can write to a buffer 15 for (i = 0; argv[0][i] && i < sizeof (buffer) - 1; ++i) 16 buffer[i] = argv[0][i]; 17 buffer[i] = '\0'; 19 break_optimization(buffer); 21 // check that we can read from a buffer 22 for (i = 0; argv[0][i] && i < sizeof (buffer) - 1; ++i) 23 if (buffer[i] != argv[0][i])
|
buffer-copy.c | 11 char buffer[128]; local 13 // check that we can write to a buffer 14 for (i = 0; argv[0][i] && i < sizeof (buffer) - 1; ++i) 15 buffer[i] = argv[0][i]; 16 buffer[i] = '\0'; 18 break_optimization(buffer); 20 // check that we can read from a buffer 21 for (i = 0; argv[0][i] && i < sizeof (buffer) - 1; ++i) 22 if (buffer[i] != argv[0][i])
|
/external/syslinux/com32/gpllib/disk/ |
labels.c | 16 char *buffer = malloc(buffer_size); local 17 *buffer_label = buffer; 21 strlcpy(buffer, "DOS 12-bit fat", buffer_size); 24 strlcpy(buffer, "XENIX root", buffer_size); 27 strlcpy(buffer, "XENIX /usr", buffer_size); 30 strlcpy(buffer, "DOS 3.0+ 16-bit FAT (up to 32M)", buffer_size); 33 strlcpy(buffer, "DOS 3.3+ Extended Partition", buffer_size); 36 strlcpy(buffer, "DOS 3.31+ 16-bit FAT (over 32M)", buffer_size); 39 strlcpy(buffer, "NTFS/exFAT/HPFS", buffer_size); 40 //case 0x07: strlcpy(buffer, "Advanced Unix", buffer_size); break [all...] |
/external/libcups/cups/ |
ppd-attr.c | 143 char *buffer, /* I - String buffer */ 144 size_t bufsize) /* I - Size of string buffer */ 146 char *bufptr; /* Pointer into buffer */ 149 if (!make_and_model || !buffer || bufsize < 1) 151 if (buffer) 152 *buffer = '\0'; 170 strlcpy(buffer, make_and_model + 1, bufsize); 172 if ((bufptr = strrchr(buffer, ')')) != NULL) 181 snprintf(buffer, bufsize, "Xerox %s", make_and_model) [all...] |
/external/clang/test/SemaTemplate/ |
instantiate-typeof.cpp | 6 int buffer[n]; local 7 [&buffer] { __typeof(buffer) x; }();
|
/external/google-breakpad/src/common/linux/ |
safe_readlink.h | 41 // but guarantees |buffer| is NULL-terminated if sys_readlink() returns 45 // |buffer_size| specifies the size of |buffer| in bytes. As this function 46 // always NULL-terminates |buffer| on success, |buffer_size| should be 54 bool SafeReadLink(const char* path, char* buffer, size_t buffer_size); 57 // size of |buffer| if it is a char array of known size. 59 bool SafeReadLink(const char* path, char (&buffer)[N]) { 60 return SafeReadLink(path, buffer, sizeof(buffer));
|
safe_readlink_unittest.cc | 38 char buffer[1]; local 39 EXPECT_FALSE(SafeReadLink("/proc/self/exe", buffer, 0)); 43 char buffer[1]; local 44 EXPECT_FALSE(SafeReadLink("/proc/self/exe", buffer, 1)); 48 char buffer[PATH_MAX]; local 49 EXPECT_TRUE(SafeReadLink("/proc/self/exe", buffer, sizeof(buffer))); 50 size_t path_length = strlen(buffer); 52 EXPECT_GT(sizeof(buffer), path_length); 54 // Buffer size equals to the expected path length plus 1 for the NULL byte 65 char buffer[PATH_MAX]; local 73 char buffer[PATH_MAX]; local 78 char buffer[PATH_MAX]; local [all...] |
/external/vboot_reference/firmware/lib/tpm_lite/include/ |
tlcl_internal.h | 22 * command buffer. FromTpmTYPE gets a value of type TYPE from a TPM command 23 * buffer into a variable. 26 static inline void ToTpmUint32(uint8_t *buffer, uint32_t x) { 27 buffer[0] = (uint8_t)(x >> 24); 28 buffer[1] = (uint8_t)((x >> 16) & 0xff); 29 buffer[2] = (uint8_t)((x >> 8) & 0xff); 30 buffer[3] = (uint8_t)(x & 0xff); 37 static inline void FromTpmUint32(const uint8_t *buffer, uint32_t *x) { 38 *x = ((buffer[0] << 24) | 39 (buffer[1] << 16) [all...] |
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
glBindVertexBuffer.java | 1 // C function void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride ) 5 int buffer,
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
ver4_patricia_trie_reading_utils.cpp | 24 const uint8_t *const buffer, int *pos) { 25 return ByteArrayUtils::readUint32AndAdvancePosition(buffer, pos);
|
/system/nvram/core/ |
crypto_boringssl.cpp | 33 // SHA256 requires an output buffer of at least SHA256_DIGEST_LENGTH. 34 // |digest_size| might be less, so store the digest in a local buffer. 35 uint8_t buffer[SHA256_DIGEST_LENGTH]; local 36 ::SHA256(data, data_size, buffer); 39 if (digest_size < sizeof(buffer)) { 40 memcpy(digest, buffer, digest_size); 42 memcpy(digest, buffer, sizeof(buffer)); 43 memset(digest + sizeof(buffer), 0, digest_size - sizeof(buffer)); [all...] |
/external/compiler-rt/test/asan/TestCases/Linux/ |
asan-asm-stacktrace-test.cc | 18 __attribute__((noinline)) int foo(size_t n, int *buffer) { 20 __asm__("movl (%[buffer], %[n], 4), %[r] \n\t" 22 : [buffer] "r"(buffer), [n] "r"(n) 29 int *buffer = new int[n]; local 30 foo(n, buffer); 31 delete[] buffer;
|
/external/webrtc/webrtc/common_video/ |
i420_buffer_pool_unittest.cc | 20 rtc::scoped_refptr<VideoFrameBuffer> buffer = pool.CreateBuffer(16, 16); local 21 EXPECT_EQ(16, buffer->width()); 22 EXPECT_EQ(16, buffer->height()); 24 const uint8_t* y_ptr = buffer->data(kYPlane); 25 const uint8_t* u_ptr = buffer->data(kUPlane); 26 const uint8_t* v_ptr = buffer->data(kVPlane); 27 // Release buffer so that it is returned to the pool. 28 buffer = nullptr; 30 buffer = pool.CreateBuffer(16, 16); 31 EXPECT_EQ(y_ptr, buffer->data(kYPlane)) 40 rtc::scoped_refptr<VideoFrameBuffer> buffer = pool.CreateBuffer(16, 16); local 57 rtc::scoped_refptr<VideoFrameBuffer> buffer = pool.CreateBuffer(16, 16); local 62 rtc::scoped_refptr<VideoFrameBuffer> buffer; local [all...] |
/frameworks/base/tools/aapt2/util/ |
BigBuffer_test.cpp | 24 BigBuffer buffer(4); 26 EXPECT_NE(nullptr, buffer.NextBlock<char>(2)); 27 EXPECT_EQ(2u, buffer.size()); 31 BigBuffer buffer(16); 33 char* b1 = buffer.NextBlock<char>(8); 36 char* b2 = buffer.NextBlock<char>(4); 43 BigBuffer buffer(16); 45 EXPECT_NE(nullptr, buffer.NextBlock<char>(32)); 46 EXPECT_EQ(32u, buffer.size()); 50 BigBuffer buffer(16) [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
StringBuilderExtensions.cs | 44 public static void append<T>( this StringBuilder buffer, T value ) 46 buffer.Append( value ); 50 public static char charAt( this StringBuilder buffer, int index ) 52 return buffer[index]; 56 public static int length( this StringBuilder buffer ) 58 return buffer.Length; 62 public static void setCharAt( this StringBuilder buffer, int index, char c ) 64 buffer[index] = c; 68 public static void setLength( this StringBuilder buffer, int length ) 70 buffer.Length = length [all...] |
/external/fio/t/ |
log.c | 7 char buffer[1024]; local 12 len = vsnprintf(buffer, sizeof(buffer), format, args); 14 len = min(len, sizeof(buffer) - 1); 16 return fwrite(buffer, len, 1, stderr); 21 char buffer[1024]; local 26 len = vsnprintf(buffer, sizeof(buffer), format, args); 28 len = min(len, sizeof(buffer) - 1); 30 return fwrite(buffer, len, 1, stdout) [all...] |
/external/jline/src/src/main/java/jline/ |
CursorBuffer.java | 18 StringBuffer buffer = new StringBuffer(); field in class:CursorBuffer 23 return buffer.length(); 31 return buffer.charAt(cursor - 1); 35 if (buffer.length() == 0) { 39 buffer.delete(0, buffer.length()); 45 * Write the specific character into the buffer, setting the cursor position 53 buffer.insert(cursor++, c); 54 if (isOvertyping() && cursor < buffer.length()) { 55 buffer.deleteCharAt(cursor) [all...] |