Open GoogleCodeExporter opened 9 years ago
Thanks for the report. I imagine we'll be able to reproduce the report with
cwebp. Just for definiteness can you give the dimensions you were scaling to
rather than just the factor?
Original comment by jz...@google.com
on 14 Jul 2015 at 4:15
This particular image was scaled to 200 x 147 in this instance, although we
found similar behavior at several scales.
Original comment by scro...@google.com
on 14 Jul 2015 at 4:43
I can reproduce this doing an upscale with 0.4.3 and the current tip of tree. A
good way to achieve a difference is with different values of --malloc-fill:
$ valgrind \
--track-origins=yes \
--malloc-fill=0xcc \
./examples/dwebp \
-ppm -scale 200 147 \
5.sm.webp -o out.ppm
I'll have a closer look when I get a chance.
Original comment by jz...@google.com
on 18 Jul 2015 at 2:54
there's apparently a buffer-read overflow happening at src/utils/rescaler.c:51,
where 'x_in' can become equal to 'wrk->src_width' (shouldn't happen).
Investigating and fixing...
Original comment by pascal.m...@gmail.com
on 23 Jul 2015 at 5:01
Right one could clamp or perhaps bias 'accum' given the current precision.
Increasing the precision would likely give a more accurate calculation of this
coordinate.
Original comment by jz...@google.com
on 23 Jul 2015 at 9:27
Original issue reported on code.google.com by
scro...@google.com
on 13 Jul 2015 at 2:56Attachments: