Skip to content

Commit fa3a1dc

Browse files
committed
Fixed a code flaw in macro caching.
1 parent 39a6c9f commit fa3a1dc

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

source/base/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#define OFFICIAL_VERSION_STRING "3.7.1"
4646
#define OFFICIAL_VERSION_NUMBER 371
4747

48-
#define POV_RAY_PRERELEASE "alpha.8701451"
48+
#define POV_RAY_PRERELEASE "alpha.8702613"
4949

5050
#if (POV_RAY_IS_AUTOBUILD == 1) && ((POV_RAY_IS_OFFICIAL == 1) || (POV_RAY_IS_SEMI_OFFICIAL == 1))
5151
#ifdef POV_RAY_PRERELEASE

source/parser/parser_tokenizer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,10 @@ void Parser::Parse_Directive(int After_Hash)
20802080
{
20812081
Input_File->In_File->seekg(PMac->Macro_File_Pos);
20822082
if (!Input_File->In_File->ReadRaw(PMac->Cache, PMac->CacheSize))
2083+
{
20832084
delete[] PMac->Cache;
2085+
PMac->Cache = NULL;
2086+
}
20842087
Input_File->In_File->seekg(pos);
20852088
}
20862089
}

unix/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.7.1-alpha.8701451
1+
3.7.1-alpha.8702613

0 commit comments

Comments
 (0)