syvaidya / openstego

OpenStego is a steganography application that provides two functionalities: a) Data Hiding: It can hide any data within an image file. b) Watermarking: Watermarking image files with an invisible signature. It can be used to detect unauthorized file copying.
https://www.openstego.com
GNU General Public License v2.0
1.15k stars 212 forks source link

NullPointerException with embedmark command for some valid images #54

Closed alexvanbelle closed 2 years ago

alexvanbelle commented 2 years ago

Hi,

First, just want to say thank you for the great work on Openstego! Really appreciated.

I try to use it for a big image dataset and I notice an unexpected behavior : some valid images can create NullPointerException. I "successfully" reproduce it every time with command line. I didn't test with GUI.

Stack trace:

com.openstego.desktop.OpenStegoException: java.lang.NullPointerException at com.openstego.desktop.OpenStego.embedMark(OpenStego.java:156) at com.openstego.desktop.OpenStego.embedMark(OpenStego.java:178) at com.openstego.desktop.OpenStegoCmd.executeEmbedMark(OpenStegoCmd.java:251) at com.openstego.desktop.OpenStegoCmd.execute(OpenStegoCmd.java:128) at com.openstego.desktop.OpenStego.main(OpenStego.java:355) Caused by: java.lang.NullPointerException at com.openstego.desktop.plugin.dwtdugad.DWTDugadPlugin.embedData(DWTDugadPlugin.java:123) at com.openstego.desktop.OpenStego.embedMark(OpenStego.java:152) ... 4 more

Repro steps:

Impact:

Expected behavior:

Software versions:

openstego_digital_watermark_null_pointer_exception.zip

syvaidya commented 2 years ago

Thank you for excellently written bug report. I'll take a look.

syvaidya commented 2 years ago

Fixed with v0.8.5

alexvanbelle commented 2 years ago

Thanks very much. I'll give a try to the new release this week