Handle missing syscalls with correct exception (#255)

This commit is contained in:
Yan
2017-05-15 16:07:01 -04:00
committed by GitHub
parent 2202b0a27d
commit 42c28e0256
+1 -1
View File
@@ -1442,7 +1442,7 @@ class Linux(Platform):
table = getattr(linux_syscalls, self.current.machine)
name = table[index]
implementation = getattr(self, name)
except AttributeError:
except (AttributeError, KeyError):
raise SyscallNotImplemented(self.current.address_bit_size, index)
return self._syscall_abi.invoke(implementation)