James Zern 8c7137950b VP8LEncodeStream: fix segfault on OOM
initialize bw_side before calling EncoderAnalyze() & EncoderInit() which
may fail; previously this would cause a free of an invalid pointer in
VP8LBitWriterWipeOut().

since at least:
v0.6.0-120-gf8c2ac15 Multi-thread the lossless cruncher.

Tested:
for i in `seq 1 639`; do
  export MALLOC_FAIL_AT=$i
  ./examples/cwebp -m 6 -q 100 -lossless jpeg_file
done

Bug: webp:565
Change-Id: I1c95883834b6e4b13aee890568ce3bad0f4266f0
(cherry picked from commit fe153fae98a3fe4626ff537ec8d5f4477cec5739)
(cherry picked from commit ddd65f0d19bc6a3acbc48e49d315140ccf099b9a)
2022-04-06 21:49:58 -07:00
..
2021-07-28 20:22:18 +00:00
2021-07-20 18:12:24 -07:00
2022-04-06 21:49:58 -07:00
2021-07-20 18:12:24 -07:00
2021-07-28 20:22:18 +00:00
2021-07-20 18:12:24 -07:00
2021-07-20 18:12:24 -07:00
2021-07-20 18:12:24 -07:00