Skip to content
Permalink
Browse files Browse the repository at this point in the history
Merge pull request #171 into 2.5-fixes.
  • Loading branch information
David Beer committed Aug 23, 2013
1 parent 94480e8 commit 3ed7492
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib/Libdis/disrsi_.c
Expand Up @@ -112,6 +112,15 @@ int disrsi_(
if (dis_umaxd == 0)
disiui_();

if (count >= dis_umaxd)
{
if (count > dis_umaxd)
goto overflow;

if (memcmp(scratch, dis_umax, dis_umaxd) > 0)
goto overflow;
}

switch (c = (*dis_getc)(stream))
{

Expand Down

0 comments on commit 3ed7492

Please sign in to comment.