Skip to content

Commit

Permalink
8238249: GetPrimitiveArrayCritical passed with hardcoded FALSE value
Browse files Browse the repository at this point in the history
Reviewed-by: kcr
  • Loading branch information
Johan Vos committed Jan 30, 2020
1 parent b96bc52 commit ca37c1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/javafx.graphics/src/main/native-iio/jpegloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1664,8 +1664,7 @@ JNIEXPORT jboolean JNICALL Java_com_sun_javafx_iio_jpeg_JPEGImageLoader_decompre

num_scanlines = jpeg_read_scanlines(cinfo, &scanline_ptr, 1);
if (num_scanlines == 1) {
jboolean iscopy = FALSE;
jbyte *body = (*env)->GetPrimitiveArrayCritical(env, barray, &iscopy);
jbyte *body = (*env)->GetPrimitiveArrayCritical(env, barray, NULL);
if (body == NULL) {
fprintf(stderr, "decompressIndirect: GetPrimitiveArrayCritical returns NULL: out of memory\n");
return JNI_FALSE;
Expand Down

0 comments on commit ca37c1f

Please sign in to comment.