Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libwebsockets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Fork
libwebsockets
Commits
c47fda71
Commit
c47fda71
authored
8 years ago
by
Andy Green
Browse files
Options
Downloads
Patches
Plain Diff
service: always restrict rx to serve_buf_size
parent
ad2dac06
Branches
v2.0-stable
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/service.c
+3
-0
3 additions, 0 deletions
lib/service.c
with
3 additions
and
0 deletions
lib/service.c
+
3
−
0
View file @
c47fda71
...
@@ -918,6 +918,9 @@ read:
...
@@ -918,6 +918,9 @@ read:
eff_buf
.
token_len
=
LWS_MAX_SOCKET_IO_BUF
;
eff_buf
.
token_len
=
LWS_MAX_SOCKET_IO_BUF
;
}
}
if
(
eff_buf
.
token_len
>
LWS_MAX_SOCKET_IO_BUF
)
eff_buf
.
token_len
=
LWS_MAX_SOCKET_IO_BUF
;
eff_buf
.
token_len
=
lws_ssl_capable_read
(
wsi
,
eff_buf
.
token_len
=
lws_ssl_capable_read
(
wsi
,
(
unsigned
char
*
)
eff_buf
.
token
,
pending
?
pending
:
(
unsigned
char
*
)
eff_buf
.
token
,
pending
?
pending
:
eff_buf
.
token_len
);
eff_buf
.
token_len
);
...
...
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