forked from old/legacy-imlib2
2 possible security vulns fixed. should probably release new version with
these. SVN revision: 34682
This commit is contained in:
parent
6b8b05d270
commit
48995a4b5a
|
@ -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);
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue