mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-16 21:35:25 +00:00
8297480: GetPrimitiveArrayCritical in imageioJPEG misses result - NULL check
Reviewed-by: jdv
This commit is contained in:
parent
abeddab991
commit
2f8a5c2eca
@ -713,6 +713,7 @@ static int setQTables(JNIEnv *env,
|
||||
CHECK_NULL_RETURN(table, 0);
|
||||
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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user