Commits

Billy O'Neal committed 0e3332c

Fixed a crash bug off by one error.

Comments (0)

Files changed (2)

pevLib/Version.hpp

 //
 #pragma once
 
-#define PEVFIND_VERSION "1.5.10"
+#define PEVFIND_VERSION "1.5.11"

pevLib/mainScanner.cpp

 			wchar_t currentCharacter = towlower(candidates[0][endingIndex]);
 			for(std::vector<std::wstring>::const_iterator it = candidates.begin(); it != candidates.end(); it++)
 			{
-				if (it->size() < endingIndex) goto done;
+				if (it->size() <= endingIndex) goto done;
 				if (towlower(it->at(endingIndex)) != currentCharacter) goto done;
 			}
 		}