[sofia-sip] fix overflow in logging (tport)

[sofia-sip] bump .update
This commit is contained in:
Dragos Oancea authored and Andrey Volk committed 2020-01-20 19:46:51 +04:00
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;