Ver Fonte

libobs: Fix buffer overrun in video_frame_init

derrod há 1 ano atrás
pai
commit
79632f96dd
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      libobs/media-io/video-frame.c

+ 1 - 1
libobs/media-io/video-frame.c

@@ -196,7 +196,7 @@ void video_frame_init(struct video_frame *frame, enum video_format format,
 	size_t size = 0;
 	uint32_t linesizes[MAX_AV_PLANES];
 	uint32_t heights[MAX_AV_PLANES];
-	size_t offsets[MAX_AV_PLANES - 1];
+	size_t offsets[MAX_AV_PLANES];
 	int alignment = base_get_alignment();
 
 	if (!frame)