浏览代码

[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)
while (*text++) length++;
if (text != NULL)
{
while (*text++) length++;
}
return length;
}

正在加载...
取消
保存