mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Issue #6654: Enum crash on ADDRESS record, possibly bad record, but still a crash (imported from 1.2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
CREDITS
2
CREDITS
@@ -13,6 +13,8 @@ Telesthetic - for supporting SIP development
|
||||
|
||||
Christos Ricudis - for substantial code contributions
|
||||
|
||||
nic.at - ENUM support in Asterisk
|
||||
|
||||
Paul Bagyenda, Digital Solutions - for initial Voicetronix driver development
|
||||
|
||||
=== WISHLIST CONTRIBUTERS ===
|
||||
|
4
enum.c
4
enum.c
@@ -99,8 +99,8 @@ static int parse_ie(char *data, int maxdatalen, char *src, int srclen)
|
||||
len = olen = (int)src[0];
|
||||
src++;
|
||||
srclen--;
|
||||
if (len > srclen) {
|
||||
ast_log(LOG_WARNING, "Want %d, got %d\n", len, srclen);
|
||||
if (len > srclen || len < 0 ) {
|
||||
ast_log(LOG_WARNING, "ENUM parsing failed: Wanted %d characters, got %d\n", len, srclen);
|
||||
return -1;
|
||||
}
|
||||
if (len > maxdatalen)
|
||||
|
Reference in New Issue
Block a user