1.09b - Fix for a potential crash in probabilistic scan mode (<100%).
This commit is contained in:
parent
6a67f575d8
commit
fc8b7d781b
|
@ -1,3 +1,8 @@
|
|||
Version 1.09b:
|
||||
--------------
|
||||
|
||||
- Fix for a potential crash in probabilistic scan mode (<100%).
|
||||
|
||||
Version 1.08b:
|
||||
--------------
|
||||
|
||||
|
|
2
config.h
2
config.h
|
@ -23,7 +23,7 @@
|
|||
#ifndef _HAVE_CONFIG_H
|
||||
#define _HAVE_CONFIG_H
|
||||
|
||||
#define VERSION "1.08b"
|
||||
#define VERSION "1.09b"
|
||||
|
||||
#define USE_COLOR 1 /* Use terminal colors */
|
||||
|
||||
|
|
21
crawler.c
21
crawler.c
|
@ -1941,15 +1941,20 @@ void crawl_par_trylist_init(struct pivot_desc* pv) {
|
|||
!((is_c_sens(pv) ? strcmp : strcasecmp)((char*)pv->try_list[i],
|
||||
(char*)pv->req->par.v[pv->fuzz_par]))) continue;
|
||||
|
||||
if (c == pv->child_cnt && R(100) < crawl_prob) {
|
||||
struct http_request* n;
|
||||
n = req_copy(pv->req, pv, 1);
|
||||
ck_free(TPAR(n));
|
||||
TPAR(n) = ck_strdup(pv->try_list[i]);
|
||||
n->callback = par_trylist_callback;
|
||||
async_request(n);
|
||||
} else
|
||||
if (c == pv->child_cnt) {
|
||||
|
||||
if (R(100) < crawl_prob) {
|
||||
struct http_request* n;
|
||||
n = req_copy(pv->req, pv, 1);
|
||||
ck_free(TPAR(n));
|
||||
TPAR(n) = ck_strdup(pv->try_list[i]);
|
||||
n->callback = par_trylist_callback;
|
||||
async_request(n);
|
||||
}
|
||||
|
||||
} else {
|
||||
if (!pv->child[c]->linked) pv->child[c]->linked = 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -150,7 +150,7 @@ int main(int argc, char** argv) {
|
|||
SAY("skipfish version " VERSION " by <lcamtuf@google.com>\n");
|
||||
|
||||
while ((opt = getopt(argc, argv,
|
||||
"+A:F:C:H:b:Nd:c:r:p:I:X:S:D:PJOYQMUEW:LVT:G:R:B:q:g:m:f:t:w:i:s:o:")) > 0)
|
||||
"+A:F:C:H:b:Nd:c:r:p:I:X:S:D:PJOYQMUEW:LVT:G:R:B:q:g:m:f:t:w:i:s:o:h")) > 0)
|
||||
|
||||
switch (opt) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue