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

Also available in: Atom PDF