Setting the upper address limit for OpenBSD ##io_self (#15318)

Here it is more an additional 'safety blanket' as sysctl
call would fail once reached then end of the address mapping
anyway.
This commit is contained in:
David CARLIER 2019-10-20 22:36:55 +01:00 committed by radare
parent 87665bafd5
commit ba17532cd1

View File

@ -601,6 +601,8 @@ exit:
eprintf ("sysctl failed: %s\n", strerror (errno));
return false;
}
endq = size;
while (sysctl (mib, 3, &entry, &size, NULL, 0) != -1) {
int perm = 0;
if (entry.kve_end == endq) {