Skip to content

Commit

Permalink
fix invalid DPD image access (indirectly revealed by #318)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Jan 27, 2023
1 parent 82b6340 commit a37dbf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libde265/dpb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ int decoded_picture_buffer::new_image(std::shared_ptr<const seq_parameter_set> s

// --- allocate new image ---

if (free_image_buffer_idx<0) {
return free_image_buffer_idx;
}

de265_image* img = dpb[free_image_buffer_idx];

int w = sps->pic_width_in_luma_samples;
Expand Down

0 comments on commit a37dbf1

Please sign in to comment.