提交 7ebdb0fe 编写于 作者: V vadim

8141229: [Parfait] Null pointer dereference in cmsstrcasecmp of cmserr.c

Reviewed-by: prr, serb
上级 20ae51b0
...@@ -2545,9 +2545,11 @@ int LocateSample(cmsIT8* it8, const char* cSample) ...@@ -2545,9 +2545,11 @@ int LocateSample(cmsIT8* it8, const char* cSample)
for (i=0; i < t->nSamples; i++) { for (i=0; i < t->nSamples; i++) {
fld = GetDataFormat(it8, i); fld = GetDataFormat(it8, i);
if (fld != NULL) {
if (cmsstrcasecmp(fld, cSample) == 0) if (cmsstrcasecmp(fld, cSample) == 0)
return i; return i;
} }
}
return -1; return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册