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 84f188bf authored by John Zhang's avatar John Zhang
Browse files

fix: proper dealing with empty structs. This problem popped out after the...

fix: proper dealing with empty structs. This problem popped out after the previous commit about map_value_ptr
parent f0035034
......@@ -417,6 +417,10 @@ class LL2MuMapper:
if LLT._is_varsize():
return self.map_value_varstt(llv)
MuT = self.map_type(LLT)
if MuT is mutype.MU_VOID: # empty struct, struct<>
return None
if topstt not in self._topstt_map:
# build from top
topstt_mu = self.map_value(topstt, building=True)
......@@ -542,8 +542,8 @@ def test_empty_struct():
assert MuT == mutype.MuUPtr(mutype.MU_VOID)
muv = ll2mu.map_value(ptr_empty)
assert muv._is_null()
assert len(ll2mu._pending_ptr_values) == 0
def test_malloc_array_of_void():
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