Skip to content

Integer overflow when processing large images #14

@phoenixluoh

Description

@phoenixluoh

┌──(root㉿kali)-[~/Downloads/stegpy-master]
└─# stegpy Do_you_like_misc.png -p
Enter password (will not be echoed):
Traceback (most recent call last):
File "/usr/local/bin/stegpy", line 33, in
sys.exit(load_entry_point('stegpy==0.0.1', 'console_scripts', 'stegpy')())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/dist-packages/stegpy-0.0.1-py3.13.egg/stegpy/steg.py", line 74, in main
host.read_message(password)
~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.13/dist-packages/stegpy-0.0.1-py3.13.egg/stegpy/lsb.py", line 57, in read_message
msg = decode_message(self.data)
File "/usr/local/lib/python3.13/dist-packages/stegpy-0.0.1-py3.13.egg/stegpy/lsb.py", line 197, in decode_message
if host_data.size % divisor != 0:
~~~~~~~~~~~~~~~^~~~~~~~~
OverflowError: Python integer 1898640 out of bounds for uint8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions