Skip to content
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

Index 0 is out of bounds #6

Open
AlexandreOndet opened this issue Dec 20, 2020 · 1 comment
Open

Index 0 is out of bounds #6

AlexandreOndet opened this issue Dec 20, 2020 · 1 comment

Comments

@AlexandreOndet
Copy link

Traceback (most recent call last):
File "/usr/local/bin/stegpy", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.8/dist-packages/stegpy/steg.py", line 52, in main
host.read_message(password)
File "/usr/local/lib/python3.8/dist-packages/stegpy/lsb.py", line 45, in read_message
msg = decode_message(self.data)
File "/usr/local/lib/python3.8/dist-packages/stegpy/lsb.py", line 167, in decode_message
bits = 2 ** ((host_data[0] & 48) >> 4) # bits = 2 ^ (5th and 6th bits)
IndexError: index 0 is out of bounds for axis 0 with size 0

@dhsdshdhk
Copy link
Collaborator

dhsdshdhk commented Dec 26, 2020

I haven't looked at this program in a long time. Can you provide the host file you tried to use or some context like how often this problem happens?

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

No branches or pull requests

2 participants