Bitdefender Hypervisor Memory Introspection
introcrt.c File Reference
#include "introcrt.h"
#include "glue.h"

Go to the source code of this file.

Functions

int strlower_utf16 (WCHAR *buf, size_t len)
 
int strlower_utf8 (char *buf, size_t len)
 
int wstrcmp (const WCHAR *buf1, const WCHAR *buf2)
 
int wstrcasecmp (const WCHAR *buf1, const WCHAR *buf2)
 
int wstrncasecmp (const WCHAR *buf1, const WCHAR *buf2, size_t len)
 
const WCHARstrstr_utf16 (const WCHAR *buf1, const WCHAR *buf2)
 
int strcasecmp_utf8_utf16 (const char *buf1, const WCHAR *buf2, size_t len)
 
char * utf16toutf8 (char *Destination, const WCHAR *Source, DWORD DestinationMaxLength)
 
char * utf16tolowerutf8 (char *Destination, const WCHAR *Source, DWORD DestinationMaxLength)
 
WCHARutf8toutf16 (WCHAR *Destination, const char *Source, DWORD DestinationMaxLength)
 
int is_str_ansi (const char *Buffer, size_t MaxBufferSize, size_t MinSize)
 
void memcpy_end (void *Destination, const void *Source, size_t DestinationSize, size_t SourceSize)
 
long long my_llabs (long long value)
 
BOOLEAN glob_match_utf8 (char const *Pattern, char const *String, BOOLEAN IgnoreCase, BOOLEAN Truncated)
 
BOOLEAN glob_match_numeric_utf8 (char const *Pattern, char const *String)
 
BOOLEAN glob_match_utf16 (char const *Pattern, WCHAR const *String, BOOLEAN IgnoreCase, BOOLEAN Truncated)
 
size_t wstrnlen (const WCHAR *s, size_t maxlen)
 
size_t wstrlen (const WCHAR *str)
 
size_t strlcpy (char *dst, const char *src, size_t dest_size)
 
size_t wstrlcpy (WCHAR *dst, const WCHAR *src, size_t dest_size)
 
size_t strlcat (char *dst, const char *src, size_t size)
 
int nd_vsnprintf_s (char *str, size_t sizeOfBuffer, size_t count, const char *format, va_list args)
 
void * nd_memset (void *s, int c, size_t n)
 

Function Documentation

◆ glob_match_numeric_utf8()

BOOLEAN glob_match_numeric_utf8 ( char const *  Pattern,
char const *  String 
)

Definition at line 766 of file introcrt.c.

Referenced by IntCamiLoadLinux(), and IntCamiLoadProtOptionsLinux().

◆ glob_match_utf16()

BOOLEAN glob_match_utf16 ( char const *  Pattern,
WCHAR const *  String,
BOOLEAN  IgnoreCase,
BOOLEAN  Truncated 
)

Definition at line 909 of file introcrt.c.

Referenced by IntExceptUser(), and IntExceptUserMatchNameGlob().

◆ glob_match_utf8()

BOOLEAN glob_match_utf8 ( char const *  Pattern,
char const *  String,
BOOLEAN  IgnoreCase,
BOOLEAN  Truncated 
)

◆ is_str_ansi()

int is_str_ansi ( const char *  Buffer,
size_t  MaxBufferSize,
size_t  MinSize 
)

Definition at line 527 of file introcrt.c.

Referenced by IntReadString().

◆ memcpy_end()

void memcpy_end ( void *  Destination,
const void *  Source,
size_t  DestinationSize,
size_t  SourceSize 
)

Definition at line 576 of file introcrt.c.

◆ my_llabs()

long long my_llabs ( long long  value)

Definition at line 600 of file introcrt.c.

Referenced by IntExceptVerifyCodeBlocksSig().

◆ nd_memset()

void* nd_memset ( void *  s,
int  c,
size_t  n 
)

Definition at line 1242 of file introcrt.c.

◆ nd_vsnprintf_s()

int nd_vsnprintf_s ( char *  str,
size_t  sizeOfBuffer,
size_t  count,
const char *  format,
va_list  args 
)

Definition at line 1226 of file introcrt.c.

◆ strcasecmp_utf8_utf16()

int strcasecmp_utf8_utf16 ( const char *  buf1,
const WCHAR buf2,
size_t  len 
)

Definition at line 413 of file introcrt.c.

Referenced by strcasecmp_utf8_utf16_len().

◆ strlcat()

size_t strlcat ( char *  dst,
const char *  src,
size_t  size 
)

Definition at line 1169 of file introcrt.c.

◆ strlcpy()

◆ strlower_utf16()

int strlower_utf16 ( WCHAR buf,
size_t  len 
)

◆ strlower_utf8()

int strlower_utf8 ( char *  buf,
size_t  len 
)

◆ strstr_utf16()

const WCHAR* strstr_utf16 ( const WCHAR buf1,
const WCHAR buf2 
)

Definition at line 195 of file introcrt.c.

Referenced by IntWinModCheckSpecialCases().

◆ utf16tolowerutf8()

char* utf16tolowerutf8 ( char *  Destination,
const WCHAR Source,
DWORD  DestinationMaxLength 
)

Definition at line 480 of file introcrt.c.

Referenced by IntWinGetProcCmdLineHandleBufferInMemory().

◆ utf16toutf8()

char* utf16toutf8 ( char *  Destination,
const WCHAR Source,
DWORD  DestinationMaxLength 
)

◆ utf8toutf16()

WCHAR* utf8toutf16 ( WCHAR Destination,
const char *  Source,
DWORD  DestinationMaxLength 
)

◆ wstrcasecmp()

◆ wstrcmp()

int wstrcmp ( const WCHAR buf1,
const WCHAR buf2 
)

Definition at line 86 of file introcrt.c.

◆ wstrlcpy()

size_t wstrlcpy ( WCHAR dst,
const WCHAR src,
size_t  dest_size 
)

◆ wstrlen()

◆ wstrncasecmp()

int wstrncasecmp ( const WCHAR buf1,
const WCHAR buf2,
size_t  len 
)

◆ wstrnlen()

size_t wstrnlen ( const WCHAR s,
size_t  maxlen 
)

Definition at line 1064 of file introcrt.c.

Referenced by IntAlertGetHashForLinuxName(), and IntAlertGetHashForWindowsName().