Project

General

Profile

Actions

Bug #2948

closed

mpls: cast of misaligned data leads to undefined behvaviour (master)

Added by Victor Julien almost 5 years ago. Updated almost 5 years ago.

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

Description

From reporter:

decode-mpls.c:61:16: runtime error: load of misaligned
address 0x60300016d216 for type
'uint32_t' (aka 'unsigned int'), which requires 4 byte
alignment

Instead of casing the data to a uint32_t we should memcpy it.


Related issues 1 (0 open1 closed)

Copied from Suricata - Bug #2903: mpls: cast of misaligned data leads to undefined behvaviourClosedJason IshActions
Actions #1

Updated by Victor Julien almost 5 years ago

  • Copied from Bug #2903: mpls: cast of misaligned data leads to undefined behvaviour added
Actions #2

Updated by Victor Julien almost 5 years ago

  • Status changed from Assigned to Closed
  • Private changed from Yes to No
Actions

Also available in: Atom PDF