Testing fixes for security improvement, thread safety, and memory management.

This commit is contained in:
Storm Dragon
2025-06-09 14:41:33 -04:00
parent 62e1001679
commit 6998706934
7 changed files with 19 additions and 10 deletions

View File

@ -16,16 +16,16 @@ class applicationManager():
def getCurrentApplication(self):
currApp = self.env['screen']['newApplication'].upper()
if not currApp:
currApp == 'DEFAULT'
currApp = 'DEFAULT'
if currApp == '':
currApp == 'DEFAULT'
currApp = 'DEFAULT'
return currApp
def getPrevApplication(self):
prevApp = self.env['screen']['oldApplication'].upper()
if not prevApp:
prevApp == 'DEFAULT'
prevApp = 'DEFAULT'
if prevApp == '':
prevApp == 'DEFAULT'
prevApp = 'DEFAULT'
return prevApp
def isApplicationChange(self):
return self.env['screen']['oldApplication'] != self.env['screen']['newApplication']

View File

@ -92,7 +92,7 @@ class memoryManager():
def clearCurrentIndexList(self, name):
if not self.listStorageValid(name):
return False
self.listStorage[name]['index'] = []
self.listStorage[name]['list'] = []
self.listStorage[name]['index'] = -1
def getCurrentIndex(self,name):
if not self.listStorageValid(name):
@ -103,7 +103,7 @@ class memoryManager():
try:
return self.listStorage[name]['index']
except:
retrun -1
return -1
def isIndexListEmpty(self, name):
if not self.listStorageValid(name):
return False