Add a check to detect JPEG images that contain an unsupported number of components for VCN (#217)

[ROCm/rocjpeg commit: 772c0ee3f5]
此提交包含在:
Aryan Salmanpour authored and GitHub committed 2026-01-12 14:51:46 -08:00
1 父節點 2e8786d0b2
當前提交 61804dad1c
1 file changed
+1 -1
+1 -1
查看文件
@@ -330,7 +330,7 @@ bool RocJpegStreamParser::ParseSOS() {
uint32_t num_components = stream_[2];
if (num_components > NUM_COMPONENTS - 1) {
if (num_components > NUM_COMPONENTS - 1 || num_components != jpeg_stream_parameters_.picture_parameter_buffer.num_components) {
ERR("invalid number of component!")
return false;
}