Merge tag '2.1.0'
* tag '2.1.0': (39 commits)
TurboJPEG: Update JPEG buf ptrs on comp/xform err
Include TJ.FLAG_LIMITSCANS in JNI header
OSS-Fuzz: Code comment tweaks for compr. targets
jdhuff.h: Fix ASan regression caused by 8fa70367
cjpeg_fuzzer: Add cov for h2v2 smooth downsampling
Huff decs: Fix/suppress more innocuous UBSan errs
Huff dec: Fix non-deterministic output w/bad input
OSS-Fuzz: Check img size b4 readers allocate mem
OSS-Fuzz: More code coverage improvements
jchuff.c: Fix MSan error
compress_yuv_fuzzer: Minor code coverage tweak
cjpeg.c: Code formatting tweak
rdbmp.c: Fix more innocuous UBSan errors
rdbmp.c/rdppm.c: Fix more innocuous UBSan errors
OSS-Fuzz: cjpeg fuzz target
compress_yuv_fuzzer: Use unique filename template
OSS-Fuzz: Fix UBSan err caused by TJFLAG_FUZZING
OSS-Fuzz: YUV encoding/compression fuzz target
...
This commit is contained in:
@@ -876,7 +876,7 @@ encode_mcu_AC_refine_prepare(const JCOEF *block,
|
||||
|
||||
#define ENCODE_COEFS_AC_REFINE(label) { \
|
||||
while (zerobits) { \
|
||||
int idx = count_zeroes(&zerobits); \
|
||||
idx = count_zeroes(&zerobits); \
|
||||
r += idx; \
|
||||
cabsvalue += idx; \
|
||||
signbits >>= idx; \
|
||||
@@ -933,7 +933,7 @@ METHODDEF(boolean)
|
||||
encode_mcu_AC_refine (j_compress_ptr cinfo, JBLOCKROW *MCU_data)
|
||||
{
|
||||
phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy;
|
||||
register int temp, r;
|
||||
register int temp, r, idx;
|
||||
char *BR_buffer;
|
||||
unsigned int BR;
|
||||
int Sl = cinfo->Se - cinfo->Ss + 1;
|
||||
@@ -984,7 +984,7 @@ encode_mcu_AC_refine (j_compress_ptr cinfo, JBLOCKROW *MCU_data)
|
||||
|
||||
if (zerobits) {
|
||||
int diff = ((absvalues + DCTSIZE2 / 2) - cabsvalue);
|
||||
int idx = count_zeroes(&zerobits);
|
||||
idx = count_zeroes(&zerobits);
|
||||
signbits >>= idx;
|
||||
idx += diff;
|
||||
r += idx;
|
||||
|
||||
Reference in New Issue
Block a user