Pārlūkot izejas kodu

[text] TextLength() security check

pull/1104/head
Ray pirms 5 gadiem
vecāks
revīzija
39e73ccc4d
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. +4
    -1
      src/text.c

+ 4
- 1
src/text.c Parādīt failu

@ -1147,7 +1147,10 @@ unsigned int TextLength(const char *text)
{
unsigned int length = 0; //strlen(text)
while (*text++) length++;
if (text != NULL)
{
while (*text++) length++;
}
return length;
}

Notiek ielāde…
Atcelt
Saglabāt