aboutsummaryrefslogtreecommitdiff
path: root/src/alert.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-08-07 23:00:01 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-08-09 01:37:16 +0200
commit216e9a4456207f5ae9cd85926521851e11a26d92 (patch)
treeb85c0cd6d085ca32de8122c286cfeb4c8544c19c /src/alert.h
parent003bbd5f7672d7fd4f40478fd57cc4e03c30f933 (diff)
downloadbitcoin-216e9a4456207f5ae9cd85926521851e11a26d92.tar.xz
Add a way to limit deserialized string lengths
and use it for most strings being serialized.
Diffstat (limited to 'src/alert.h')
-rw-r--r--src/alert.h6
1 files changed, 3 insertions, 3 deletions
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();