Project

General

Profile

Actions

Bug #4091

closed
JL JL

byte_math: Offset is a signed value

Bug #4091: byte_math: Offset is a signed value

Added by Jeff Lucovsky over 5 years ago. Updated over 5 years ago.

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

Description

The Snort documentation defines the "offset_value" for byte_math to be a signed value.

Suricata uses an unsigned value:

    uint16_t offset; // struct DetectByteMathData_

    if (ByteExtractStringUint16(&bmd->offset, 10, strlen(tmp_str), (const char *)tmp_str) < 0) {

VJ Updated by Victor Julien over 5 years ago Actions #1

  • Status changed from New to Assigned
  • Assignee set to Jeff Lucovsky
  • Target version set to 6.0.1

JL Updated by Jeff Lucovsky over 5 years ago Actions #2

  • Status changed from Assigned to In Review

JL Updated by Jeff Lucovsky over 5 years ago Actions #3

  • Status changed from In Review to Closed
Actions

Also available in: PDF Atom