MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / addr_valid

Function addr_valid

src/memory.cpp:162–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162int addr_valid (const TCHAR *txt, uaecptr addr, uae_u32 len)
163{
164 addrbank *ab = &get_mem_bank(addr);
165 if (ab == 0 || !(ab->flags & (ABFLAG_RAM | ABFLAG_ROM)) || addr < 0x100 || len > 16777215 || !valid_address (addr, len)) {
166 write_log (_T("corrupt %s pointer %x (%d) detected!\n"), txt, addr, len);
167 return 0;
168 }
169 return 1;
170}
171
172static int illegal_count;
173/* A dummy bank that only contains zeros */

Callers 13

strncpyhaFunction · 0.85
memcpyha_safeFunction · 0.85
memcpyah_safeFunction · 0.85
strcpyah_safeFunction · 0.85
strcpyha_safeFunction · 0.85
host_bindFunction · 0.85
host_connectFunction · 0.85
host_sendtoFunction · 0.85
host_recvfromFunction · 0.85
host_getsocknameFunction · 0.85
host_getpeernameFunction · 0.85
thread_get2Function · 0.85

Calls 2

valid_addressFunction · 0.70
write_logFunction · 0.70

Tested by

no test coverage detected