We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 41bb127 + 669fbab commit ccfd27cCopy full SHA for ccfd27c
openvdb/openvdb/tools/Activate.h
@@ -87,6 +87,10 @@ struct ActivateOp
87
// only iterate if there are inactive tiles
88
if (!node.isValueMaskOn()) {
89
for (auto it = node.beginValueOff(); it; ++it) {
90
+ // Skip child nodes, they'll be processed separately
91
+ // (InteralNode ValueOff iterators don't automatically
92
+ // skip these).
93
+ if (node.isChildMaskOn(it.pos())) continue;
94
if (check(*it)) it.setValueOn(/*on=*/true);
95
}
96
pendingchanges/ubsan.txt
@@ -0,0 +1,3 @@
1
+OpenVDB:
2
+ - Bug Fixes::
3
+ - Fixed an occurance of undefined behaviour in tools::activate (though this would typically not have manifested with any unintended behaviour)
0 commit comments