Skip to content

Commit 3ed7492

Browse files
author
David Beer
committed
Merge pull request #171 into 2.5-fixes.
1 parent 94480e8 commit 3ed7492

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: src/lib/Libdis/disrsi_.c

+9
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,15 @@ int disrsi_(
112112
if (dis_umaxd == 0)
113113
disiui_();
114114

115+
if (count >= dis_umaxd)
116+
{
117+
if (count > dis_umaxd)
118+
goto overflow;
119+
120+
if (memcmp(scratch, dis_umax, dis_umaxd) > 0)
121+
goto overflow;
122+
}
123+
115124
switch (c = (*dis_getc)(stream))
116125
{
117126

0 commit comments

Comments
 (0)