-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
elivepatch_client/security.py: IndexError: list index out of range #10
Comments
looks like there is no 4.19.1 in the security file, we probably have to deal with such situations. |
Got it to work
4.19 is 4 chars, not 3, It look hard-coded for kernel with only one number as the minor (like 4.5). it should have check for 1 and 2 number as minor. Note that I might be wrong as I don't do python. |
Hello, Probably we can split the security_versions_tmp by the dot and check that the resulting values are only two, if we are dealing with more than two values, than we are dealing with a version that have a revision number.
In the future we will want to move to a more "standard" way of managing patches overlay: |
merged 850ad6b Thanks for the bug report |
elivepatch --cve --kernel 4.19.1
Namespace(clear=False, conf_file=None, config='/proc/config.gz', cve=True, debug=False, kernel_version='4.19.1', patch=None, url=None, version=False)
List of current patches:
[]
CVE repository already present.
updating...
4 19 1
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.6/elivepatch", line 31, in
main = Main(ArgsParser())
File "/usr/lib64/python3.6/site-packages/elivepatch_client/cli.py", line 31, in init
self.dispatch(config)
File "/usr/lib64/python3.6/site-packages/elivepatch_client/cli.py", line 50, in dispatch
cve_patch_list = cve_repository.cve_git_id(config.kernel_version)
File "/usr/lib64/python3.6/site-packages/elivepatch_client/security.py", line 41, in cve_git_id
security_versions.append(security_versions_tmp.split('.')[2])
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: