mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-12 23:40:04 +00:00
[sofia-sip] fix overflow in logging (tport)
[sofia-sip] bump .update
This commit is contained in:
parent
f1c1f9085c
commit
e3b1fb91c8
@ -1 +1 @@
|
||||
Wed Dec 11 15:38:35 MST 2019
|
||||
Fri Jan 17 15:37:19 UTC 2020
|
||||
|
@ -866,7 +866,9 @@ void tport_log_msg(tport_t *self, msg_t *msg,
|
||||
}
|
||||
|
||||
n = su_strncspn(s, end - s, "\r\n");
|
||||
|
||||
if (buffer_pos > buffer_size) {
|
||||
break;
|
||||
}
|
||||
bytes_written = snprintf(buffer + buffer_pos, buffer_size - buffer_pos, "%.*s", (int)n, s);
|
||||
if (bytes_written > 0) {
|
||||
buffer_pos += bytes_written;
|
||||
|
Loading…
x
Reference in New Issue
Block a user