Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Raptor Engineering Public Development
dsview
Commits
16dc008e
Commit
16dc008e
authored
7 years ago
by
DreamSourceLab
Browse files
Options
Download
Email Patches
Plain Diff
fix crash and data error issue when export data to file
parent
45abe48a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
DSView/pv/storesession.cpp
DSView/pv/storesession.cpp
+3
-1
No files found.
DSView/pv/storesession.cpp
View file @
16dc008e
...
...
@@ -488,6 +488,8 @@ void StoreSession::export_proc(shared_ptr<data::Snapshot> snapshot)
for
(
int
blk
=
0
;
!
boost
::
this_thread
::
interruption_requested
()
&&
blk
<
blk_num
;
blk
++
)
{
uint64_t
buf_sample_num
=
logic_snapshot
->
get_block_size
(
blk
)
*
8
;
buf_vec
.
clear
();
buf_sample
.
clear
();
BOOST_FOREACH
(
const
boost
::
shared_ptr
<
view
::
Signal
>
s
,
_session
.
get_signals
())
{
int
ch_type
=
s
->
get_type
();
if
(
ch_type
==
SR_CHANNEL_LOGIC
)
{
...
...
@@ -517,7 +519,7 @@ void StoreSession::export_proc(shared_ptr<data::Snapshot> snapshot)
return
;
}
memset
(
xbuf
,
0
,
size
*
unitsize
);
for
(
uint64_t
j
=
0
;
j
<
u
size
;
j
++
)
{
for
(
uint64_t
j
=
0
;
j
<
size
;
j
++
)
{
for
(
unsigned
int
k
=
0
;
k
<
buf_vec
.
size
();
k
++
)
{
if
(
buf_vec
[
k
]
==
NULL
&&
buf_sample
[
k
])
xbuf
[
j
*
unitsize
+
k
/
8
]
+=
1
<<
k
%
8
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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