Lines Matching defs:address
9 // This file is a part of AddressSanitizer, an address sanity checker.
177 // In a 32-bit address space, the address calculation will wrap, so this check
224 uptr address, uptr size, DWORD *old_protection) {
225 return ::VirtualProtect((void*)address, size,
231 uptr address, uptr size, DWORD old_protection) {
233 return ::VirtualProtect((void*)address, size,
238 static bool IsMemoryPadding(uptr address, uptr size) {
239 u8* function = (u8*)address;
251 static bool FunctionHasPrefix(uptr address, const T &pattern) {
252 u8* function = (u8*)address - sizeof(pattern);
259 static bool FunctionHasPadding(uptr address, uptr size) {
260 if (IsMemoryPadding(address - size, size))
263 FunctionHasPrefix(address, kHintNop8Bytes))
298 // memory location containing the targeted address. The displacement is still
348 uptr address = image_address;
352 if (!::VirtualQuery((void*)address, &info, sizeof(info)))
355 // Check whether a region can be allocated at |address|.
357 void *page = ::VirtualAlloc((void*)RoundUpTo(address, granularity),
365 address = (uptr)info.BaseAddress + info.RegionSize;
460 static size_t GetInstructionSize(uptr address, size_t* rel_offset = nullptr) {
467 if (memcmp((u8*)address, kPrologueWithShortJump1,
469 memcmp((u8*)address, kPrologueWithShortJump2,
475 switch (*(u64*)address) {
480 switch (*(u8*)address) {
527 switch (*(u16*)(address)) {
544 switch (0x00FFFFFF & *(u32*)address) {
549 switch (0x000000FF & *(u32 *)address) {
555 switch (*(u8*)address) {
561 const u8 next_byte = *(u8*)(address + 1);
569 switch (*(u16*)address) {
594 switch (0x00FFFFFF & *(u32*)address) {
649 switch (*(u32*)(address)) {
666 switch (*(u8*)address) {
670 switch (*(u16*)address) {
686 switch (0x00FFFFFF & *(u32*)address) {
698 switch (*(u32*)address) {
706 // compiled. In either case, we print the address and 8 bytes of instructions
710 u8 *bytes = (u8 *)address;
714 (void *)address, bytes[0], bytes[1], bytes[2], bytes[3], bytes[4],
722 static size_t RoundUpToInstrBoundary(size_t size, uptr address) {
725 size_t instruction_size = GetInstructionSize(address + cursor);
860 // If needed, get memory space for indirect address.
911 // Check if the targeted address can be encoded in the function padding.
1113 // We have two parallel arrays: the import address table (IAT) and the table