Flutter Engine
The Flutter Engine
Functions
SkMSAN.h File Reference
#include "include/private/base/SkAssert.h"
#include <cstddef>
#include <string.h>

Go to the source code of this file.

Functions

void __msan_check_mem_is_initialized (const volatile void *, size_t)
 
void __msan_unpoison (const volatile void *, size_t)
 
static void sk_msan_assert_initialized (const void *begin, const void *end)
 
static void sk_msan_mark_initialized (const void *begin, const void *end, const char *skbug)
 

Function Documentation

◆ __msan_check_mem_is_initialized()

void __msan_check_mem_is_initialized ( const volatile void *  ,
size_t   
)

◆ __msan_unpoison()

void __msan_unpoison ( const volatile void *  ,
size_t   
)

◆ sk_msan_assert_initialized()

static void sk_msan_assert_initialized ( const void *  begin,
const void *  end 
)
inlinestatic

Definition at line 24 of file SkMSAN.h.

24 {
25#if defined(__has_feature)
26 #if __has_feature(memory_sanitizer)
27 __msan_check_mem_is_initialized(begin, (const char*)end - (const char*)begin);
28 #endif
29#endif
30}
void __msan_check_mem_is_initialized(const volatile void *, size_t)
static const char * begin(const StringSlice &s)
Definition: editor.cpp:252
glong glong end

◆ sk_msan_mark_initialized()

static void sk_msan_mark_initialized ( const void *  begin,
const void *  end,
const char *  skbug 
)
inlinestatic

Definition at line 34 of file SkMSAN.h.

34 {
35 SkASSERT(skbug && 0 != strcmp(skbug, ""));
36#if defined(__has_feature)
37 #if __has_feature(memory_sanitizer)
38 __msan_unpoison(begin, (const char*)end - (const char*)begin);
39 #endif
40#endif
41}
#define SkASSERT(cond)
Definition: SkAssert.h:116
void __msan_unpoison(const volatile void *, size_t)