Skip to content


Browse files Browse the repository at this point in the history
8297480: GetPrimitiveArrayCritical in imageioJPEG misses result - NUL…
…L check

Backport-of: 2f8a5c2eca0dc3dad08b7b2c33394ac214907008
  • Loading branch information
MBaesken committed Jan 18, 2023
1 parent edf4fb0 commit 014c5ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/java.desktop/share/native/libjavajpeg/imageioJPEG.c
Expand Up @@ -713,6 +713,7 @@ static int setQTables(JNIEnv *env,
qdata = (*env)->GetObjectField(env, table, JPEGQTable_tableID);
qdataBody = (*env)->GetPrimitiveArrayCritical(env, qdata, NULL);
CHECK_NULL_RETURN(qdataBody, 0);

if (cinfo->is_decompressor) {
decomp = (j_decompress_ptr) cinfo;
Expand Down

1 comment on commit 014c5ae

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.