Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-server
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-server
Commits
3f9cc280
Commit
3f9cc280
authored
6 years ago
by
Anatolii Kurotych
Browse files
Options
Downloads
Patches
Plain Diff
[*] Fix calculation out size bug in enc_http_reply_encode
parent
c8584a3d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
enc_server/dap_enc_http.c
+4
-1
4 additions, 1 deletion
enc_server/dap_enc_http.c
with
4 additions
and
1 deletion
enc_server/dap_enc_http.c
+
4
−
1
View file @
3f9cc280
...
@@ -188,7 +188,10 @@ void enc_http_reply_encode(struct dap_http_simple *a_http_simple,enc_http_delega
...
@@ -188,7 +188,10 @@ void enc_http_reply_encode(struct dap_http_simple *a_http_simple,enc_http_delega
if
(
a_http_simple
->
reply
)
if
(
a_http_simple
->
reply
)
free
(
a_http_simple
->
reply
);
free
(
a_http_simple
->
reply
);
size_t
l_reply_size_max
=
a_http_delegate
->
response_size
*
2
;
// TODO make proper size calculations
size_t
l_reply_size_max
=
dap_enc_code_out_size
(
a_http_delegate
->
key
,
a_http_delegate
->
response_size
,
DAP_ENC_DATA_TYPE_RAW
);
a_http_simple
->
reply
=
DAP_NEW_SIZE
(
void
,
l_reply_size_max
);
a_http_simple
->
reply
=
DAP_NEW_SIZE
(
void
,
l_reply_size_max
);
a_http_simple
->
reply_size
=
dap_enc_code
(
a_http_delegate
->
key
,
a_http_simple
->
reply_size
=
dap_enc_code
(
a_http_delegate
->
key
,
a_http_delegate
->
response
,
a_http_delegate
->
response_size
,
a_http_delegate
->
response
,
a_http_delegate
->
response_size
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment