From a78996503fc5a3e9f80741d6546fdb7eaf18feef Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Thu, 7 Aug 2014 23:00:01 +0200 Subject: Add a way to limit deserialized string lengths and use it for most strings being serialized. Rebased-From: 216e9a4 --- src/alert.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/alert.h') diff --git a/src/alert.h b/src/alert.h index da140be5e5..296d48891a 100644 --- a/src/alert.h +++ b/src/alert.h @@ -60,9 +60,9 @@ public: READWRITE(setSubVer); READWRITE(nPriority); - READWRITE(strComment); - READWRITE(strStatusBar); - READWRITE(strReserved); + READWRITE(LIMITED_STRING(strComment, 65536)); + READWRITE(LIMITED_STRING(strStatusBar, 256)); + READWRITE(LIMITED_STRING(strReserved, 256)); ) void SetNull(); -- cgit v1.2.3