This commit is contained in:
Konloch 2021-07-21 05:00:28 -07:00
parent 6ef91b49b9
commit 075cbd1012

View file

@ -133,10 +133,18 @@ public class SecurityMan extends SecurityManager
//filter class whitelist
boolean validClassCall = false;
//JDK-8
if(canClassExecute(Thread.currentThread().getStackTrace()[3].getClassName()))
validClassCall = true;
//JDK-15
else if(canClassExecute(Thread.currentThread().getStackTrace()[4].getClassName()))
validClassCall = true;
//JDK-8
else if(canClassExecute(Thread.currentThread().getStackTrace()[6].getClassName()))
validClassCall = true;
//JDK-15
else if(canClassExecute(Thread.currentThread().getStackTrace()[7].getClassName()))
validClassCall = true;
else
{
int index = 0;