projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add windows/GNUmakefile for creating the windows build
[privoxy.git]
/
pcrs.c
diff --git
a/pcrs.c
b/pcrs.c
index
0553a53
..
0b746a1
100644
(file)
--- a/
pcrs.c
+++ b/
pcrs.c
@@
-1,4
+1,3
@@
-const char pcrs_rcs[] = "$Id: pcrs.c,v 1.50 2016/05/25 10:50:28 fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/pcrs.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/pcrs.c,v $
@@
-55,8
+54,6
@@
const char pcrs_rcs[] = "$Id: pcrs.c,v 1.50 2016/05/25 10:50:28 fabiankeil Exp $
#include "pcrs.h"
#include "pcrs.h"
-const char pcrs_h_rcs[] = PCRS_H_VERSION;
-
/*
* Internal prototypes
*/
/*
* Internal prototypes
*/
@@
-241,16
+238,12
@@
extern pcrs_substitute *pcrs_compile_fuzzed_replacement(const char *replacement,
static pcrs_substitute *pcrs_compile_replacement(const char *replacement, int trivialflag, int capturecount, int *errptr)
{
int i, k, l, quoted;
static pcrs_substitute *pcrs_compile_replacement(const char *replacement, int trivialflag, int capturecount, int *errptr)
{
int i, k, l, quoted;
- size_t length;
char *text;
pcrs_substitute *r;
char *text;
pcrs_substitute *r;
-#ifdef FUZZ
- static const char *replacement_stack;
- static const size_t *length_stack;
- static pcrs_substitute *r_stack;
-
- replacement_stack = replacement;
- length_stack = &length;
+#ifndef FUZZ
+ size_t length;
+#else
+ static size_t length;
#endif
i = k = l = quoted = 0;
#endif
i = k = l = quoted = 0;
@@
-272,10
+265,6
@@
static pcrs_substitute *pcrs_compile_replacement(const char *replacement, int tr
}
memset(r, '\0', sizeof(pcrs_substitute));
}
memset(r, '\0', sizeof(pcrs_substitute));
-#ifdef FUZZ
- r_stack = r;
-#endif
-
length = strlen(replacement);
if (NULL == (text = (char *)malloc(length + 1)))
length = strlen(replacement);
if (NULL == (text = (char *)malloc(length + 1)))
@@
-418,7
+407,6
@@
static pcrs_substitute *pcrs_compile_replacement(const char *replacement, int tr
goto plainchar;
}
goto plainchar;
}
- assert(l < PCRS_MAX_SUBMATCHES - 1);
assert(r->backref[l] < PCRS_MAX_SUBMATCHES + 2);
/* Valid and in range? -> record */
if ((0 <= r->backref[l]) &&
assert(r->backref[l] < PCRS_MAX_SUBMATCHES + 2);
/* Valid and in range? -> record */
if ((0 <= r->backref[l]) &&