Skip to content
Snippets Groups Projects
Commit 48580e44 authored by Ostermayer, Markus's avatar Ostermayer, Markus
Browse files

added support for userspace ssps

parent c72e8e73
No related branches found
No related tags found
No related merge requests found
Pipeline #220798 passed
[metadata]
name = swet
version = 0.0.6
version = 0.0.7
description = SWET (Schon wieder ein Testsystem) is a minimal Testsystem for SWEB (Schon wieder ein Betriebssystem)
long_description = file: README.md
long_description_content_type = text/markdown
......
......@@ -18,6 +18,7 @@ class Result(Enum):
failed = 'FAILED'
skipped = 'SKIPPED'
vfs_error = 'VFS-ERROR'
userspace_ssp = 'Userspace Stack Smashing Protector'
class Colors(Enum):
......@@ -32,6 +33,7 @@ TEST_RESULT_COLORS = {
Result.failed: Colors.red,
Result.skipped: Colors.yellow,
Result.vfs_error: Colors.yellow,
Result.userspace_ssp: Colors.yellow,
}
QEMU_EXECUTE_COMMAND = [
......@@ -167,6 +169,9 @@ def execute_test(
elif 'KERNEL PANIC' in logline:
test_result = Result.failed
elif 'Bufferoverflow detected!' in logline:
test_result = Result.userspace_ssp
qemu_prozess.terminate()
_print_testresult(
......@@ -182,6 +187,8 @@ def execute_test(
for line in test_log:
print(line)
return -1
elif test_result == Result.userspace_ssp:
return -1
else:
return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment