Clamp LG_VADDR for 32-bit builds on x64.
This commit is contained in:
parent
ad91762635
commit
bda12bd925
@ -442,6 +442,9 @@ typedef unsigned __int32 uint32_t;
|
|||||||
if (f == NULL) {
|
if (f == NULL) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
if (vaddr > (sizeof(void *) << 3)) {
|
||||||
|
vaddr = sizeof(void *) << 3;
|
||||||
|
}
|
||||||
fprintf(f, "%u", vaddr);
|
fprintf(f, "%u", vaddr);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user