Project

General

Profile

Actions

Bug #4175

closed

Misaligned memory access in Interest::getNonce()

Added by Junxiao Shi over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Base
Target version:
Start date:
07/09/2017
Due date:
% Done:

100%

Estimated time:
1.00 h

Description

Platform: Ubuntu 16.04 32-bit

Steps to reproduce:

./waf configure --enable-static --disable-shared --with-tests --without-pch --with-sanitizer=address,undefined
./waf
build/unit-tests -t TestInterest/GetNonce

Actual:

../src/interest.cpp:338:62: runtime error: load of misaligned address 0xb2e191f2 for type 'const uint32_t', which requires 4 byte alignment
0xb2e191f2: note: pointer points here
 00 77  0a 04 f5 18 a6 76 00 00  00 00 00 00 00 00 00 00  02 00 00 00 ff ff ff 04  0c 00 00 00 1a 00
              ^ 

Expected: no such error

Actions

Also available in: Atom PDF