mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-06-13 01:26:53 +02:00
check string buffer size
This commit is contained in:
parent
cb7efcb188
commit
de29abb05c
2 changed files with 25 additions and 22 deletions
|
@ -188,8 +188,8 @@ namespace data
|
|||
void ReadFromStream (std::istream& s);
|
||||
void ReadFromBuffer (bool verifySignature);
|
||||
void WriteToStream (std::ostream& s) const;
|
||||
static size_t ReadString (char* str, std::istream& s);
|
||||
static void WriteString (const std::string& str, std::ostream& s);
|
||||
size_t ReadString (char* str, size_t len, std::istream& s) const;
|
||||
void WriteString (const std::string& str, std::ostream& s) const;
|
||||
void ExtractCaps (const char * value);
|
||||
std::shared_ptr<const Address> GetAddress (TransportStyle s, bool v4only, bool v6only = false) const;
|
||||
void UpdateCapsProperty ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue