WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit af5f81a3 authored by Stefan Marr's avatar Stefan Marr
Browse files

Fixed initialization of bytecode arrays

- they will now have the correct size
Signed-off-by: default avatarStefan Marr <git@stefan-marr.de>
parent 036b8086
......@@ -90,8 +90,7 @@ class Method(Array, Invokable):
def set_number_of_bytecodes(self, value):
# Set the number of bytecodes in this method
self._bytecodes = array('b')
self._bytecodes.insert(value - 1, 0)
self._bytecodes = array('b', [0] * value)
self._inline_cache_class = [None] * value
self._inline_cache_invokable = [None] * value
......@@ -120,8 +119,7 @@ class Method(Array, Invokable):
def replace_bytecodes(self):
newbc = array('b')
newbc = array('b', [0] * len(self._bytecodes))
idx = 0
i = 0
......@@ -150,8 +148,7 @@ class Method(Array, Invokable):
# we copy the new array because it may be shorter, and we don't
# want to upset whatever dependence there is on the length
self._bytecodes = array('b')
self._bytecodes.insert(idx - 1, 0)
self._bytecodes = array('b', [0] * idx)
for i in range(0, idx):
self._bytecodes[i] = newbc[i]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment