aboutsummaryrefslogtreecommitdiff
path: root/src/alert.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-08-07 23:00:01 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-08-18 15:34:29 +0200
commita78996503fc5a3e9f80741d6546fdb7eaf18feef (patch)
tree9b6706a60a9a8dc6de52052f2830fb33355a3ea2 /src/alert.h
parentd78e4312b248661c7a5b10ab0f2cd13e81369cd7 (diff)
downloadbitcoin-a78996503fc5a3e9f80741d6546fdb7eaf18feef.tar.xz
Add a way to limit deserialized string lengths
and use it for most strings being serialized. Rebased-From: 216e9a4
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();