Преглед изворни кода

[text] TextLength() security check

pull/1104/head
Ray пре 5 година
родитељ
комит
39e73ccc4d
1 измењених фајлова са 4 додато и 1 уклоњено
  1. +4
    -1
      src/text.c

+ 4
- 1
src/text.c Прегледај датотеку

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

Loading…
Откажи
Сачувај