Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Seismic
Open VDS
Commits
f3d62e5d
Commit
f3d62e5d
authored
Oct 11, 2021
by
Jim King
Committed by
Jørgen Lind
Oct 28, 2021
Browse files
fix bug where CalculateGatherSpacing may try to read past end of file
parent
8145c9b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/SEGYUtils/SEGYUtils/TraceDataManager.h
View file @
f3d62e5d
...
...
@@ -141,6 +141,12 @@ public:
m_dataViewManager
->
retireAllDataViews
();
}
int64_t
fileTraceCount
()
const
{
return
m_numTraces
;
}
private:
std
::
shared_ptr
<
DataViewManager
>
m_dataViewManager
;
...
...
tools/SEGYImport/SEGYImport.cpp
View file @
f3d62e5d
...
...
@@ -2283,7 +2283,7 @@ CalculateGatherSpacing(const SEGYFileInfo& fileInfo, const int fold, const std::
// read traces and stuff offset into a vector while primaryKey/secondaryKey match
int64_t
trace
=
firstTrace
+
1
;
for
(
int64_t
trace
=
firstTrace
+
1
;
trace
<
firstTrace
+
fold
;
++
trace
)
for
(
int64_t
trace
=
firstTrace
+
1
;
trace
<
traceDataManager
.
fileTraceCount
()
&&
trace
<
firstTrace
+
fold
;
++
trace
)
{
header
=
traceDataManager
.
getTraceData
(
trace
,
error
);
if
(
error
.
code
!=
0
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment