Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-pcre2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-pcre2
Commits
1c11a5fc
Commit
1c11a5fc
authored
Jun 14, 2017
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix reporting pcre2 error messages when workspace is exhausted.
parent
0e066bfa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
vmod_pcre2.c
src/vmod_pcre2.c
+14
-3
No files found.
src/vmod_pcre2.c
View file @
1c11a5fc
...
@@ -214,10 +214,21 @@ report_pcre2_err(VRT_CTX, int errcode, const char * const restrict msg,
...
@@ -214,10 +214,21 @@ report_pcre2_err(VRT_CTX, int errcode, const char * const restrict msg,
VERR
(
ctx
,
"%s (unknown error code)%s"
,
msg
,
post
);
VERR
(
ctx
,
"%s (unknown error code)%s"
,
msg
,
post
);
}
}
else
if
(
ret
==
PCRE2_ERROR_NOMEMORY
)
{
else
if
(
ret
==
PCRE2_ERROR_NOMEMORY
)
{
WS_Release
(
ctx
->
ws
,
strlen
(
buf
)
+
1
);
unsigned
len
=
strlen
(
buf
)
+
1
;
VERR
(
ctx
,
"%s: %s (truncated error message)%s"
,
msg
,
buf
,
if
(
len
>
bytes
)
{
WS_Release
(
ctx
->
ws
,
0
);
ERRNOMEM
(
ctx
,
"allocating workspace for pcre2 error "
"message"
);
VERR
(
ctx
,
"%s: libpcre2 error code %d%s"
,
msg
,
errcode
,
post
);
post
);
}
}
else
{
WS_Release
(
ctx
->
ws
,
len
);
VERR
(
ctx
,
"%s: %s (truncated error message)%s"
,
msg
,
buf
,
post
);
}
}
else
{
else
{
WS_Release
(
ctx
->
ws
,
ret
);
WS_Release
(
ctx
->
ws
,
ret
);
VERR
(
ctx
,
"%s: %s%s"
,
msg
,
buf
,
post
);
VERR
(
ctx
,
"%s: %s%s"
,
msg
,
buf
,
post
);
...
...
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