projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f157fb3
)
execute_external_filter(): Assert that the buffer for the filter output is large...
author
Fabian Keil
<fk@fabiankeil.de>
Sun, 27 Dec 2015 12:46:34 +0000
(12:46 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 27 Dec 2015 12:46:34 +0000
(12:46 +0000)
filters.c
patch
|
blob
|
history
diff --git
a/filters.c
b/filters.c
index
6b25fc5
..
55fdc3d
100644
(file)
--- a/
filters.c
+++ b/
filters.c
@@
-1,4
+1,4
@@
-const char filters_rcs[] = "$Id: filters.c,v 1.19
3 2015/08/12 10:34:21
fabiankeil Exp $";
+const char filters_rcs[] = "$Id: filters.c,v 1.19
4 2015/08/21 10:58:53
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/filters.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/filters.c,v $
@@
-1897,6
+1897,7
@@
static char *execute_external_filter(const struct client_state *csp,
}
filter_output = p;
}
}
filter_output = p;
}
+ assert(new_size + READ_LENGTH < *size);
len = fread(&filter_output[new_size], 1, READ_LENGTH, fp);
if (len > 0)
{
len = fread(&filter_output[new_size], 1, READ_LENGTH, fp);
if (len > 0)
{