Browse Source

Merge pull request #4955

87314c1 Fixing improper input syntax and failing bounds check (ENikS)
0.10
Pieter Wuille 10 years ago
parent
commit
7a04f3d708
No known key found for this signature in database
GPG Key ID: 57896D2FF8F0B657
  1. 2
      src/serialize.h

2
src/serialize.h

@ -921,7 +921,7 @@ public: @@ -921,7 +921,7 @@ public:
Init(nTypeIn, nVersionIn);
}
CDataStream(const std::vector<unsigned char>& vchIn, int nTypeIn, int nVersionIn) : vch((char*)&vchIn.begin()[0], (char*)&vchIn.end()[0])
CDataStream(const std::vector<unsigned char>& vchIn, int nTypeIn, int nVersionIn) : vch(vchIn.begin(), vchIn.end())
{
Init(nTypeIn, nVersionIn);
}

Loading…
Cancel
Save