Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
25c7a4e4
Commit
25c7a4e4
authored
Jun 01, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Segfault when opening profibus configurator with empty attr gsdfile fixed
parent
5be189cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
profibus/changelog.txt
profibus/changelog.txt
+1
-0
profibus/lib/wb/src/wb_c_pb_dp_slave.cpp
profibus/lib/wb/src/wb_c_pb_dp_slave.cpp
+2
-2
profibus/lib/xtt/src/xtt_c_pb_dp_slave.cpp
profibus/lib/xtt/src/xtt_c_pb_dp_slave.cpp
+3
-2
No files found.
profibus/changelog.txt
View file @
25c7a4e4
...
...
@@ -12,3 +12,4 @@
070430 rk - Changed status handling of Profibus slaves so that correct
view of the world is given.
070518 rk - Added io-method IoAgentSwap to keep driver initialized during warm restart.
070601 cs - Buxfix, opening Profibus Configurator with empty gsdfile attribute caused segfault.
profibus/lib/wb/src/wb_c_pb_dp_slave.cpp
View file @
25c7a4e4
/*
* Proview $Id: wb_c_pb_dp_slave.cpp,v 1.
8 2007-01-04 08:44:02
claes Exp $
* Proview $Id: wb_c_pb_dp_slave.cpp,v 1.
9 2007-06-01 12:53:51
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -481,7 +481,7 @@ pwr_tStatus pb_dp_slave_create_ctx( ldh_tSession ldhses, pwr_tAttrRef aref,
if
(
EVEN
(
sts
))
return
sts
;
if
(
strcmp
(
gsdfile
,
""
)
==
0
)
{
free
(
gsdfile
);
return
1
;
return
PB__GSDATTR
;
}
slave_sCtx
*
ctx
=
(
slave_sCtx
*
)
calloc
(
1
,
sizeof
(
slave_sCtx
));
...
...
profibus/lib/xtt/src/xtt_c_pb_dp_slave.cpp
View file @
25c7a4e4
/*
* Proview $Id: xtt_c_pb_dp_slave.cpp,v 1.
4 2007-01-04 08:44:40
claes Exp $
* Proview $Id: xtt_c_pb_dp_slave.cpp,v 1.
5 2007-06-01 12:53:51
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -32,6 +32,7 @@
#include "rt_pb_gsd.h"
#include "rt_pb_gsd_attr.h"
#include "xtt_c_pb_dp_slave.h"
#include "rt_pb_msg.h"
int
xtt_pb_dp_slave_help_cb
(
void
*
sctx
,
char
*
text
)
{
...
...
@@ -175,7 +176,7 @@ pwr_tStatus xtt_pb_dp_slave_create_ctx( pwr_tAttrRef aref, void *editor_ctx,
sts
=
gdh_GetObjectInfoAttrref
(
&
aaref
,
gsdfile
,
sizeof
(
gsdfile
));
if
(
EVEN
(
sts
))
return
sts
;
if
(
strcmp
(
gsdfile
,
""
)
==
0
)
{
return
1
;
return
PB__GSDATTR
;
}
xtt_slave_sCtx
*
ctx
=
(
xtt_slave_sCtx
*
)
calloc
(
1
,
sizeof
(
xtt_slave_sCtx
));
...
...
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