Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
b27fe32e
Commit
b27fe32e
authored
Aug 18, 2016
by
Simon Morlat
Browse files
fix confusing error message
parent
bfd9a69b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/belle_sip_object.c
src/belle_sip_object.c
+6
-2
No files found.
src/belle_sip_object.c
View file @
b27fe32e
...
...
@@ -498,8 +498,12 @@ static belle_sip_error_code checked_marshal(belle_sip_object_vptr_t *vptr, belle
}
memcpy
(
buff
+
initial_offset
,
p
+
initial_offset
,
*
offset
-
initial_offset
);
}
else
if
(
error
==
BELLE_SIP_BUFFER_OVERFLOW
){
belle_sip_error
(
"Object of type %s commited a buffer overflow by marshalling %i bytes"
,
vptr
->
type_name
,(
int
)(
*
offset
-
initial_offset
));
/* Case where the object aborted the marshalling because of not enough room.
* Should this happen, it is not allowed to write past buffer end anyway */
if
(
written
>
buff_size
){
belle_sip_fatal
(
"Object of type %s commited a buffer overflow by marshalling %i bytes"
,
vptr
->
type_name
,(
int
)(
*
offset
-
initial_offset
));
}
}
else
{
belle_sip_error
(
"Object of type %s produced an error during marshalling: %i"
,
vptr
->
type_name
,
error
);
...
...
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