Revert changes so we can put it in a separate advisory.

This commit is contained in:
Dirk Lemstra
2026-03-13 09:48:45 +01:00
parent 81251516bc
commit d5433b26fc
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -811,8 +811,6 @@ MagickExport MagickSizeType GetMagickResourceLimit(const ResourceType type)
default: ;
}
resource=0;
if (type >= NumberOfResourceTypes)
return(resource);
if (resource_semaphore[type] == (SemaphoreInfo *) NULL)
ActivateSemaphoreInfo(&resource_semaphore[type]);
LockSemaphoreInfo(resource_semaphore[type]);
+1 -1
View File
@@ -1276,7 +1276,7 @@ static char *ConvertUTF16ToUTF8(const char *content,size_t *length)
}
}
*length=(size_t) j;
utf8=(char *) ResizeQuantumMemory(utf8,(*length+1),sizeof(*utf8));
utf8=(char *) ResizeQuantumMemory(utf8,*length,sizeof(*utf8));
if (utf8 != (char *) NULL)
utf8[*length]='\0';
return(utf8);