mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
code analysis, bounds checks, buffer overrun fixes.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7403 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -549,6 +549,10 @@ SWITCH_DECLARE(switch_status_t) switch_find_local_ip(char *buf, int len, int fam
|
||||
char abuf[25] = "";
|
||||
#endif
|
||||
|
||||
if (len < 16) {
|
||||
return status;
|
||||
}
|
||||
|
||||
switch_copy_string(buf, "127.0.0.1", len);
|
||||
|
||||
switch (family) {
|
||||
|
Reference in New Issue
Block a user