Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
Wireshark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
Wireshark Foundation
Wireshark
Commits
5803c7b8
Commit
5803c7b8
authored
4 years ago
by
George Hopkins
Committed by
Pascal Quantin
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
multipart: fix deallocation of invalid parts
Fixes
#16741
(cherry picked from commit
2411eae9
)
parent
5f59c69d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Pipeline
#184826006
passed
4 years ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
epan/dissectors/packet-multipart.c
+4
-5
4 additions, 5 deletions
epan/dissectors/packet-multipart.c
with
4 additions
and
5 deletions
epan/dissectors/packet-multipart.c
+
4
−
5
View file @
5803c7b8
...
...
@@ -339,14 +339,13 @@ get_multipart_info(packet_info *pinfo, http_message_info_t *message_info)
parameters
=
unfold_and_compact_mime_header
(
message_info
->
media_str
,
&
dummy
);
start_boundary
=
ws_find_media_type_parameter
(
wmem_packet_scope
(),
parameters
,
"boundary"
);
if
(
!
start_boundary
)
{
if
(
!
start_boundary
)
{
return
NULL
;
}
if
(
strncmp
(
type
,
"multipart/encrypted"
,
sizeof
(
"multipart/encrypted"
)
-
1
)
==
0
)
{
if
(
strncmp
(
type
,
"multipart/encrypted"
,
sizeof
(
"multipart/encrypted"
)
-
1
)
==
0
)
{
start_protocol
=
ws_find_media_type_parameter
(
wmem_packet_scope
(),
parameters
,
"protocol"
);
if
(
!
start_protocol
)
{
g_free
(
start_boundary
);
if
(
!
start_protocol
)
{
return
NULL
;
}
}
...
...
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