izcoser/stegpy

Index 0 is out of bounds

Opened this issue · 1 comments

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

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?