2 possible security vulns fixed. should probably release new version with

these.


SVN revision: 34682
This commit is contained in:
Carsten Haitzler 2008-05-27 14:35:17 +00:00
parent 6b8b05d270
commit 48995a4b5a
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ load(ImlibImage * im, ImlibProgressFunction progress,
int i = 0;
/* read numbers */
while (c != EOF && !isspace(c))
while (c != EOF && !isspace(c) && (i < 255))
{
buf[i++] = c;
c = fgetc(f);

View File

@ -286,7 +286,7 @@ load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity,
if (line[k] != ' ')
{
s[0] = 0;
sscanf(&line[k], "%65535s", s);
sscanf(&line[k], "%255s", s);
slen = strlen(s);
k += slen;
if (!strcmp(s, "c"))