Skip to content

Commit 950a847

Browse files
committed
Fix invalid memory access
1 parent 496a281 commit 950a847

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IO/JSON/JSONIOHandlerImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ namespace openPMD
288288
while( it < end )
289289
{
290290
// skip empty slots
291-
while( j[ it ].is_null() && it < end )
291+
while( it < end && j[ it ].is_null() )
292292
{
293293
++it;
294294
}

0 commit comments

Comments
 (0)