From 06b053ff3eec47aecb74bd0209a9f72fb463609f Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 16 May 2020 16:43:40 +0300 Subject: [PATCH] Add comment about IPAddress::get_ip_str unsafety. GitOrigin-RevId: 29cd28bf9a6422cd0295c74f904ba380fc119570 --- tdutils/td/utils/port/IPAddress.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tdutils/td/utils/port/IPAddress.h b/tdutils/td/utils/port/IPAddress.h index ce6548720..7d61b7a1e 100644 --- a/tdutils/td/utils/port/IPAddress.h +++ b/tdutils/td/utils/port/IPAddress.h @@ -40,6 +40,8 @@ class IPAddress { uint32 get_ipv4() const; string get_ipv6() const; + + // returns result in a static thread-local buffer, which may be overwritten by any subsequent method call Slice get_ip_str() const; static string ipv4_to_str(uint32 ipv4);