diff options
| author | Louis Burda <quent.burda@gmail.com> | 2021-06-25 01:51:22 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2021-06-25 01:51:35 +0200 |
| commit | c7c6f38c144142563e135eceb5daed492c203a85 (patch) | |
| tree | 8c041825d524bc44048cd237335bc569c7ff939d /checker/src/checker.py | |
| parent | 14bc8a3883663656cd4254567a978002c062992d (diff) | |
| download | enowars5-service-stldoctor-c7c6f38c144142563e135eceb5daed492c203a85.tar.gz enowars5-service-stldoctor-c7c6f38c144142563e135eceb5daed492c203a85.zip | |
fix free() of potentially uninitialized pointer and minor refactors in service
Diffstat (limited to 'checker/src/checker.py')
| -rw-r--r-- | checker/src/checker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/checker/src/checker.py b/checker/src/checker.py index 9a2044f..a7bc8f4 100644 --- a/checker/src/checker.py +++ b/checker/src/checker.py @@ -120,7 +120,7 @@ class STLDoctorChecker(BaseChecker): else: content = b"solid\n" facet_count = rand.randint(4, 30) - indent = bytes([rand.choice(b"\t\n ") for i in range(rand.randint(1, 4))]) + indent = bytes([rand.choice(b"\t ") for i in range(rand.randint(1, 4))]) for fi in range(facet_count): if malformed and randchoice == 0: # malformed by wrong keyword content += indent * 1 + b"facet nornal " |
