(closes issue #17128)
Reported by: under
Patches:
d.diff uploaded by under (license 914)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@261093
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
}
/* Wait full interval */
rms = *ms;
- if (whentohangup) {
+ if (whentohangup && whentohangup < LONG_MAX / 1000) { /* Protect against overflow */
rms = whentohangup * 1000; /* timeout in milliseconds */
if (*ms >= 0 && *ms < rms) /* original *ms still smaller */
rms = *ms;