Skip to content

Commit 8220180

Browse files
committedDec 8, 2010
-- version 0.3.18 release
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@198 1a98c847-1fd6-4fd8-948a-caf3550aa51b
·
v29.0noversion
1 parent a206a23 commit 8220180

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed
 

‎script.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ bool Solver(const CScript& scriptPubKey, vector<pair<opcodetype, valtype> >& vSo
997997
break;
998998
if (opcode2 == OP_PUBKEY)
999999
{
1000-
if (vch1.size() < 33)
1000+
if (vch1.size() < 33 || vch1.size() > 120)
10011001
break;
10021002
vSolutionRet.push_back(make_pair(opcode2, vch1));
10031003
}

‎script.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,8 @@ class CScript : public vector<unsigned char>
599599

600600
bool IsPushOnly() const
601601
{
602+
if (size() > 200)
603+
return false;
602604
const_iterator pc = begin();
603605
while (pc < end())
604606
{

‎serialize.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CDataStream;
2525
class CAutoFile;
2626
static const unsigned int MAX_SIZE = 0x02000000;
2727

28-
static const int VERSION = 31705;
28+
static const int VERSION = 31800;
2929
static const char* pszSubVer = "";
3030

3131

‎setup.nsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RequestExecutionLevel highest
77

88
# General Symbol Definitions
99
!define REGKEY "SOFTWARE\$(^Name)"
10-
!define VERSION 0.3.17
10+
!define VERSION 0.3.18
1111
!define COMPANY "Bitcoin project"
1212
!define URL http://www.bitcoin.org/
1313

@@ -42,12 +42,12 @@ Var StartMenuGroup
4242
!insertmacro MUI_LANGUAGE English
4343

4444
# Installer attributes
45-
OutFile bitcoin-0.3.17-win32-setup.exe
45+
OutFile bitcoin-0.3.18-win32-setup.exe
4646
InstallDir $PROGRAMFILES\Bitcoin
4747
CRCCheck on
4848
XPStyle on
4949
ShowInstDetails show
50-
VIProductVersion 0.3.17.0
50+
VIProductVersion 0.3.18.0
5151
VIAddVersionKey ProductName Bitcoin
5252
VIAddVersionKey ProductVersion "${VERSION}"
5353
VIAddVersionKey CompanyName "${COMPANY}"

‎util.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
175175
va_start(arg_ptr, pszFormat);
176176
ret = vfprintf(fileout, pszFormat, arg_ptr);
177177
va_end(arg_ptr);
178-
fflush(fileout);
179178
}
180179
}
181180

@@ -406,11 +405,11 @@ vector<unsigned char> ParseHex(const char* psz)
406405
while (isspace(*psz))
407406
psz++;
408407
char c = phexdigit[(unsigned char)*psz++];
409-
if (c == -1)
408+
if (c == (char)-1)
410409
break;
411410
unsigned char n = (c << 4);
412411
c = phexdigit[(unsigned char)*psz++];
413-
if (c == -1)
412+
if (c == (char)-1)
414413
break;
415414
n |= c;
416415
vch.push_back(n);

0 commit comments

Comments
 (0)
Please sign in to comment.