GNOME Bugzilla – Bug 783269
overflow will happen when pps->num_tile_columns_minus1 is 19
Last modified: 2018-11-03 14:08:46 UTC
IN gsth265parser.c , gst_h265_parse_pps(), Line 1868/1869 pps->num_tile_columns_minus1 can be 19, then go into Line 1874, num_col = 20, in while loop for (i = 0; i < num_col; i++) i can be 19, pps->column_width_minus1[i] will overflow in header file, its size is 19, column_width_minus1[19]; same issue with pps->num_tile_rows_minus1;
Do you want to provide a patch?
Actually I want to check the array size 19/21, where they are from? If I can modify as below : if (pps->tiles_enabled_flag) { READ_UE_ALLOWED (&nr, pps->num_tile_columns_minus1, 0, 18); READ_UE_ALLOWED (&nr, pps->num_tile_rows_minus1, 0, 20); ..... }
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/560.