mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 04:27:06 +00:00
[sofia-sip] fix overflow in logging (tport)
[sofia-sip] bump .update
This commit is contained in:
1 parent
f1c1f9085c
commit
e3b1fb91c8
2 files changed
+4
-2
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user