Bug with 1 bit bmp file

oc-internals

#1

Just tried to upload that bmp file and my server gives a lot lof

\"files\/2_\u0420\u0430\u0441\u0447\u0435\u0442 \u0447\u0435\u0440\u0432\u044f\u0447\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438\/3.bmp\" with \"OC\Preview\BMP\"","level":0,"time":"2016-12-02T11:04:27+00:00","method":"GET","url":"\/index.php\/apps\/files\/api\/v1\/thumbnail\/256\/256\/2_\u0420\u0430\u0441\u0447\u0435\u0442 \u0447\u0435\u0440\u0432\u044f\u0447\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438\/3.bmp","user":"denis"}
{"reqId":"+iIwdobvVxHII3QewZ5J","remoteAddr":"10.0.0.101","app":"PHP","message":"unpack(): Type n: not enough input, need 2, have 1 at \/var\/www\/html\/owncloud\/lib\/private\/legacy\/image.php#748","level":3,"time":"2016-12-02T11:04:27+00:00","method":"GET","url":"\/index.php\/apps\/files\/api\/v1\/thumbnail\/256\/256\/2_\u0420\u0430\u0441\u0447\u0435\u0442 \u0447\u0435\u0440\u0432\u044f\u0447\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438\/3.bmp","user":"denis"}
{"reqId":"+iIwdobvVxHII3QewZ5J","remoteAddr":"10.0.0.101","app":"PHP","message":"unpack(): Type n: not enough input, need 2, have 1 at \/var\/www\/html\/owncloud\/lib\/private\/legacy\/image.php#748","level":3,"time":"2016-12-02T11:04:27+00:00","method":"GET","url":"\/index.php\/apps\/files\/api\/v1\/thumbnail\/256\/256\/2_\u0420\u0430\u0441\u0447\u0435\u0442 \u0447\u0435\u0440\u0432\u044f\u0447\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438\/3.bmp","user":"denis"}

It hangs on generating a preview and gets 504 very soon. Also it doesn't stop to populate a log file, so it's size when i discovered a bug was at ~50GB.

The file for testing: http://cloud.acomirei.ru/index.php/s/0sHvBwXpMKxYxTK
Just extract that bmp from zip and upload using web gui. The server will start generating previews for infinity and populating the log file with erorrs.


#2

Please create a new thread in https://central.owncloud.org/c/help/oc-server and fill out the issue template shown there (up to now its not even known which oC version you're running.

If you think this is a bug you should also directly report an issue at https://github.com/owncloud/core/issues. Reporting bugs in central is the wrong place, thanks.


#3

#4

Thanks for reporting this to the bugtracker, here is the reference: