Skip to content

Commit

Permalink
2.02b: Fixed a minor NULL pointer crash in -Y mode
Browse files Browse the repository at this point in the history
  • Loading branch information
spinkham committed Aug 9, 2011
1 parent 6202181 commit c7d2a24
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Version 2.02b:
--------------

- Fixed a minor NULL pointer crash in -Y mode.

Version 2.01b:
--------------

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#

PROGNAME = skipfish
VERSION = 2.01b
VERSION = 2.02b

OBJFILES = http_client.c database.c crawler.c analysis.c report.c
INCFILES = alloc-inl.h string-inl.h debug.h types.h http_client.h \
Expand Down
2 changes: 1 addition & 1 deletion config.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
#ifdef QUEUE_FILO
#define DICT_BATCH 100 /* Brute-force queue block */
#else
#define DICT_BATCH 600 /* Brute-force queue block */
#define DICT_BATCH 300 /* Brute-force queue block */
#endif /* ^QUEUE_FILO */

/* Single query for IPS detection - Evil Query of Doom (tm). */
Expand Down
6 changes: 5 additions & 1 deletion crawler.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,11 @@ static void secondary_ext_start(struct pivot_desc* pv, struct http_request* req,

/* Avoid foo.bar.bar. */

if (!strcasecmp((char*)lpos + 1, (char*)ex)){ i++; ck_free(tmp); continue; }
if (lpos && !strcasecmp((char*)lpos + 1, (char*)ex)) {
i++;
ck_free(tmp);
continue;
}

sprintf((char*)tmp, "%s.%s", base_name, ex);

Expand Down

0 comments on commit c7d2a24

Please sign in to comment.