-
Notifications
You must be signed in to change notification settings - Fork 43
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
Encode & decode in same memory/execution produce empty message output #5
Comments
I ran and commented on both your gists. Go check them out! Encoding and decoding happens in one single test in this package, and there is no reason it should not work elsewhere. steganography/steganography_test.go Lines 77 to 118 in 1aa26d8
|
Cool, thank you for the test reference. Could anything in my environment be affecting this perhaps? $ go version
go version go1.12.5 darwin/amd64 |
it appears, the png I was testing against was corrupted. I can say every test/setup discussed works now, except the unit test for the plugin. If you have desire you are welcome to check it out or contribute, however no pressure at all. scottleedavis/mattermost-plugin-watermark#2 Thanks for your help! |
During troubleshooting a failing test where this library is called by a plugin:
https://github.com/scottleedavis/mattermost-plugin-watermark/blob/master/server/plugin_test.go#L69-L78
I found what appears to be a bug where calling Encode & Decode during the same memory/execution of a program, produces an empty message. However, when an encode happens separately from a decode, everything seems to work as intended. (In my case running Encode via plugin inside mattermost, and later downloading the image and running Decode)
Two examples that fail on my system.
Both examples above fail to set the message.
If there any glaring errors in any of the above code, please let me know!
Thank you for building this library! 👍
The text was updated successfully, but these errors were encountered: