shujataliz / webp

Automatically exported from code.google.com/p/webp
0 stars 0 forks source link

cwebp creates 0-byte output file upon bad input #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Example:

   cwebp bad.png -o foo.webp

where 'bad.png' is an erroneous file (doesn't exist, isn't PNG, etc.) 

One shouldn't create a foo.webp empty file
Instead: foo.webp is created and has a size of 0.

Original issue reported on code.google.com by pascal.m...@gmail.com on 25 Feb 2011 at 1:14

GoogleCodeExporter commented 9 years ago
fixed by https://review.webmproject.org/#change,1817

Original comment by s...@google.com on 25 Feb 2011 at 8:09