Skip to content

Commit aebaf8d

Browse files
authored
Merge pull request #522 from danrbailey/OVDB-120
OVDB-120: OpenVDB 6.2.1 release
2 parents 17058c2 + 71c05fa commit aebaf8d

File tree

5 files changed

+38
-4
lines changed

5 files changed

+38
-4
lines changed

CHANGES

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
OpenVDB Version History
22
=======================
33

4+
Version 6.2.1 - September 30, 2019
5+
6+
Bug fixes:
7+
- Fix a crash that arose from an inadvertent ABI change of an IO class with
8+
the 6.2.0 release. This crash occurs attempting to write out a VDB Points
9+
grid using an IO routine from a different version of the core library
10+
than the core library version in which the grid was authored and when one
11+
of these core library versions is 6.2.0.
12+
13+
414
Version 6.2.0 - September 18, 2019
515

616
New features:

doc/changes.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
@page changes Release Notes
44

5+
@htmlonly <a name="v6_2_1_changes"></a>@endhtmlonly
6+
@par
7+
<B>Version 6.2.1</B> - <I>September 30, 2019</I>
8+
9+
@par
10+
Bug fixes:
11+
- Fix a crash that arose from an inadvertent ABI change of an IO class with
12+
the 6.2.0 release. This crash occurs attempting to write out a VDB Points
13+
grid using an IO routine from a different version of the core library
14+
than the core library version in which the grid was authored and when one
15+
of these core library versions is 6.2.0.
16+
17+
518
@htmlonly <a name="v6_2_0_changes"></a>@endhtmlonly
619
@par
720
<B>Version 6.2.0</B> - <I>September 18, 2019</I>

doc/doxygen-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "OpenVDB"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 6.2.0
41+
PROJECT_NUMBER = 6.2.1
4242

4343
PREDEFINED = OPENVDB_VERSION_NAME=v6_2
4444
PREDEFINED += OPENVDB_ABI_VERSION_NUMBER=6

openvdb/io/Archive.cc

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ struct StreamState
105105
StreamState();
106106
~StreamState();
107107

108+
// Important: The size and order of these member variables must *only* change when
109+
// OpenVDB ABI changes to avoid potential segfaults when performing I/O
110+
// across two different versions of the library. Adding new member
111+
// variables to the end of the struct is allowed provided that they
112+
// are only accessed from within an appropriate ABI guard.
108113
int magicNumber;
109114
int fileVersion;
110115
int libraryMajorVersion;
@@ -203,6 +208,12 @@ StreamState::~StreamState()
203208

204209
struct StreamMetadata::Impl
205210
{
211+
// Important: The size and order of these member variables must *only* change when
212+
// OpenVDB ABI changes to avoid potential segfaults when performing I/O
213+
// across two different versions of the library. Adding new member
214+
// variables to the end of the struct is allowed provided that they
215+
// are only accessed from within an appropriate ABI guard.
216+
206217
uint32_t mFileVersion = OPENVDB_FILE_VERSION;
207218
VersionId mLibraryVersion = { OPENVDB_LIBRARY_MAJOR_VERSION, OPENVDB_LIBRARY_MINOR_VERSION };
208219
uint32_t mCompression = COMPRESS_NONE;
@@ -211,12 +222,12 @@ struct StreamMetadata::Impl
211222
bool mHalfFloat = false;
212223
bool mWriteGridStats = false;
213224
bool mSeekable = false;
214-
bool mDelayedLoadMeta = DelayedLoadMetadata::isRegisteredType();
215225
bool mCountingPasses = false;
216226
uint32_t mPass = 0;
217-
uint64_t mLeaf = 0;
218227
MetaMap mGridMetadata;
219228
AuxDataMap mAuxData;
229+
bool mDelayedLoadMeta = DelayedLoadMetadata::isRegisteredType();
230+
uint64_t mLeaf = 0;
220231
uint32_t mTest = 0; // for testing only
221232
}; // struct StreamMetadata
222233

openvdb/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
// Library major, minor and patch version numbers
7676
#define OPENVDB_LIBRARY_MAJOR_VERSION_NUMBER 6
7777
#define OPENVDB_LIBRARY_MINOR_VERSION_NUMBER 2
78-
#define OPENVDB_LIBRARY_PATCH_VERSION_NUMBER 0
78+
#define OPENVDB_LIBRARY_PATCH_VERSION_NUMBER 1
7979

8080
// If OPENVDB_ABI_VERSION_NUMBER is already defined (e.g., via -DOPENVDB_ABI_VERSION_NUMBER=N)
8181
// use that ABI version. Otherwise, use this library version's default ABI.

0 commit comments

Comments
 (0)