-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement pcre2_set_max_pattern_compiled_length() and set this limit …
…in the fuzzer
- Loading branch information
1 parent
22cb0a6
commit 05aafb2
Showing
25 changed files
with
929 additions
and
533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<html> | ||
<head> | ||
<title>pcre2_set_max_pattern_compiled_length specification</title> | ||
</head> | ||
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB"> | ||
<h1>pcre2_set_max_pattern_compiled_length man page</h1> | ||
<p> | ||
Return to the <a href="index.html">PCRE2 index page</a>. | ||
</p> | ||
<p> | ||
This page is part of the PCRE2 HTML documentation. It was generated | ||
automatically from the original man page. If there is any nonsense in it, | ||
please consult the man page, in case the conversion went wrong. | ||
<br> | ||
<br><b> | ||
SYNOPSIS | ||
</b><br> | ||
<P> | ||
<b>#include <pcre2.h></b> | ||
</P> | ||
<P> | ||
<b>int pcre2_set_max_pattern_compiled_length(</b> | ||
<b> pcre2_compile_context *<i>ccontext</i>, PCRE2_SIZE <i>value</i>);</b> | ||
</P> | ||
<br><b> | ||
DESCRIPTION | ||
</b><br> | ||
<P> | ||
This function sets, in a compile context, the maximum size (in bytes) for the | ||
memory needed to hold the compiled version of a pattern that is compiled with | ||
this context. The result is always zero. If a pattern that is passed to | ||
<b>pcre2_compile()</b> with this context needs more memory, an error is | ||
generated. The default is the largest number that a PCRE2_SIZE variable can | ||
hold, which is effectively unlimited. | ||
</P> | ||
<P> | ||
There is a complete description of the PCRE2 native API in the | ||
<a href="pcre2api.html"><b>pcre2api</b></a> | ||
page and a description of the POSIX API in the | ||
<a href="pcre2posix.html"><b>pcre2posix</b></a> | ||
page. | ||
<p> | ||
Return to the <a href="index.html">PCRE2 index page</a>. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.TH PCRE2_SET_MAX_PATTERN_COMPILED_LENGTH 3 "24 April 2024" "PCRE2 10.44" | ||
.SH NAME | ||
PCRE2 - Perl-compatible regular expressions (revised API) | ||
.SH SYNOPSIS | ||
.rs | ||
.sp | ||
.B #include <pcre2.h> | ||
.PP | ||
.nf | ||
.B int pcre2_set_max_pattern_compiled_length( | ||
.B " pcre2_compile_context *\fIccontext\fP, PCRE2_SIZE \fIvalue\fP);" | ||
.fi | ||
. | ||
.SH DESCRIPTION | ||
.rs | ||
.sp | ||
This function sets, in a compile context, the maximum size (in bytes) for the | ||
memory needed to hold the compiled version of a pattern that is compiled with | ||
this context. The result is always zero. If a pattern that is passed to | ||
\fBpcre2_compile()\fP with this context needs more memory, an error is | ||
generated. The default is the largest number that a PCRE2_SIZE variable can | ||
hold, which is effectively unlimited. | ||
.P | ||
There is a complete description of the PCRE2 native API in the | ||
.\" HREF | ||
\fBpcre2api\fP | ||
.\" | ||
page and a description of the POSIX API in the | ||
.\" HREF | ||
\fBpcre2posix\fP | ||
.\" | ||
page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.