Project

General

Profile

Actions

Bug #1072

closed

Segmentation fault in 2.0beta2: Custom HTTP log segmentation fault

Added by Duarte Silva almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

When using the host parameter on the custom HTTP logging, Suricata will crash with a segmentation fault on log-httplog.c, line 262.

258 if (tx->request_hostname != NULL)
259 {
260     datalen = httplog_ctx->cf_nodes[i]->maxlen;
261     if (datalen == 0 || datalen > bstr_len(tx->parsed_uri->hostname)) {
262         datalen = bstr_len(tx->parsed_uri->hostname);
263     }

I have attached the stack trace.


Files

stacktrace.txt (3.47 KB) stacktrace.txt Segmentation fault stack trace Duarte Silva, 12/19/2013 07:40 AM
buildinfo.txt (2.03 KB) buildinfo.txt Suricata build information. Duarte Silva, 12/19/2013 07:48 AM
Actions #1

Updated by Duarte Silva almost 8 years ago

Forgot to add the Suricata build information (note the httplib version, 0.5.9).

Actions #2

Updated by Victor Julien almost 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Duarte Silva
  • Target version set to 2.0rc1
Actions #3

Updated by Duarte Silva almost 8 years ago

Patch provided on pull request https://github.com/inliniac/suricata/pull/734.

Actions #4

Updated by Victor Julien over 7 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Merged, thanks Duarte!

Actions

Also available in: Atom PDF