patches/dasher-02-vector.diff
author rohinis
Tue, 29 Nov 2011 17:32:55 +0000
branchs11express-2010-11
changeset 22234 c23e64da3e06
parent 17719 b8026ad7b90c
permissions -rwxr-xr-x
2011-11-29 Rohini S <[email protected]> * patches/Python26-22-audio.diff: Fixes CVE-2010-1634 * specs/SUNWPython26.spec: Fixes CR 7085446

--- dasher-4.11/Src/DasherCore/LanguageModelling/CTWLanguageModel.cpp-orig	2010-03-15 16:43:24.533121441 -0500
+++ dasher-4.11/Src/DasherCore/LanguageModelling/CTWLanguageModel.cpp	2010-03-15 18:56:05.517829627 -0500
@@ -358,7 +358,7 @@ void CCTWLanguageModel::GetProbs(Context
 	// calculate probabilities of all possible symbols. Again assume all 2^NrPhases
 	int *Index = new int[LocalContext.Context.size()+1]; // +1 for the rootnode
 
-	vector <unsigned short int>Interval((1<<(NrPhases+1))-1); // number of rootnodes*2 (1 prob for bit 0 and 1 each)
+	vector <unsigned int>Interval((1<<(NrPhases+1))-1); // number of rootnodes*2 (1 prob for bit 0 and 1 each)
 	if (Norm>65535)
 	{
 		Interval[0]=65535; // to prevent overflow