Searched refs:NewNC (Results 1 – 2 of 2) sorted by relevance
/external/pdfium/third_party/lcms2-2.6/ |
D | 0002-infinite-loop-GrowNamedColorList.patch | 21 if (NewNC == NULL) return NULL; 24 - while (NewNC ->Allocated < v ->Allocated) 25 - GrowNamedColorList(NewNC); 26 + while (NewNC ->Allocated < v ->Allocated) { 27 + if (!GrowNamedColorList(NewNC)) { 28 + cmsFreeNamedColorList(NewNC); 33 memmove(NewNC ->Prefix, v ->Prefix, sizeof(v ->Prefix)); 34 memmove(NewNC ->Suffix, v ->Suffix, sizeof(v ->Suffix));
|
/external/pdfium/third_party/lcms2-2.6/src/ |
D | cmsnamed.c | 543 cmsNAMEDCOLORLIST* NewNC; in cmsDupNamedColorList() local 547 …NewNC= cmsAllocNamedColorList(v ->ContextID, v -> nColors, v ->ColorantCount, v ->Prefix, v ->Suff… in cmsDupNamedColorList() 548 if (NewNC == NULL) return NULL; in cmsDupNamedColorList() 551 while (NewNC ->Allocated < v ->Allocated) { in cmsDupNamedColorList() 552 if (!GrowNamedColorList(NewNC)) { in cmsDupNamedColorList() 553 cmsFreeNamedColorList(NewNC); in cmsDupNamedColorList() 558 memmove(NewNC ->Prefix, v ->Prefix, sizeof(v ->Prefix)); in cmsDupNamedColorList() 559 memmove(NewNC ->Suffix, v ->Suffix, sizeof(v ->Suffix)); in cmsDupNamedColorList() 560 NewNC ->ColorantCount = v ->ColorantCount; in cmsDupNamedColorList() 561 memmove(NewNC->List, v ->List, v->nColors * sizeof(_cmsNAMEDCOLOR)); in cmsDupNamedColorList() [all …]
|