projects
/
kconfig-hardened-check.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b8e977
)
Add a sanity check and do minor refactoring
author
Alexander Popov
<alex.popov@linux.com>
Tue, 12 Mar 2019 13:42:23 +0000
(16:42 +0300)
committer
Alexander Popov
<alex.popov@linux.com>
Tue, 12 Mar 2019 13:42:23 +0000
(16:42 +0300)
kconfig-hardened-check.py
patch
|
blob
|
history
diff --git
a/kconfig-hardened-check.py
b/kconfig-hardened-check.py
index 6714f0570beed84adf26d54e6ad08b9017644bae..879ff7b6d9a6e34d7f8726e6c20abdd9b0f431be 100755
(executable)
--- a/
kconfig-hardened-check.py
+++ b/
kconfig-hardened-check.py
@@
-101,9
+101,12
@@
class OR(ComplexOptCheck):
# OR(<X_is_hardened>, <X_is_hardened_old>)
def check(self):
+ if not self.opts:
+ sys.exit('[!] ERROR: invalid OR check')
+
for i, opt in enumerate(self.opts):
- re
sul
t, msg = opt.check()
- if re
sul
t:
+ ret, msg = opt.check()
+ if ret:
if i == 0:
self.result = opt.result
else: