diff options
| author | Pieter Wuille <[email protected]> | 2014-08-07 23:00:01 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-08-09 01:37:16 +0200 |
| commit | 216e9a4456207f5ae9cd85926521851e11a26d92 (patch) | |
| tree | b85c0cd6d085ca32de8122c286cfeb4c8544c19c /src/alert.h | |
| parent | Merge pull request #4645 (diff) | |
| download | discoin-216e9a4456207f5ae9cd85926521851e11a26d92.tar.xz discoin-216e9a4456207f5ae9cd85926521851e11a26d92.zip | |
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.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/alert.h b/src/alert.h index da140be5e..296d48891 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(); |