Skip to content

Conversation

@zahlman
Copy link
Contributor

@zahlman zahlman commented Dec 7, 2024

The appropriate way to convert a hexadecimal string to integer is by using the built-in functionality of int. The eval function is insecure; if the input could possibly come from outside the program, no matter how indirectly, this creates a risk of an arbitrary code execution exploit. It's also much less efficient.

The appropriate way to convert a hexadecimal string to integer is by using the built-in functionality of `int`. The `eval` function is insecure; if the input could possibly come from outside the program, no matter how indirectly, this creates a risk of an arbitrary code execution exploit. It's also much less efficient.
@vasole vasole merged commit 2d1d6b5 into silx-kit:master Dec 8, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants