stegpy icon indicating copy to clipboard operation
stegpy copied to clipboard

Index 0 is out of bounds

Open AlexandreOndet opened this issue 3 years ago • 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

AlexandreOndet avatar Dec 20 '20 17:12 AlexandreOndet

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?

dhsdshdhk avatar Dec 26 '20 14:12 dhsdshdhk