Oops. Need to handle cases in which num_components > n

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@752 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
DRC
2012-01-28 01:19:52 +00:00

View File

@@ -323,7 +323,7 @@ get_sos (j_decompress_ptr cinfo)
/* Collect the component-spec parameters */
for (i = 0; i < n; i++)
for (i = 0; i < cinfo->num_components; i++)
cinfo->cur_comp_info[i] = NULL;
for (i = 0; i < n; i++) {