Project

General

Profile

Bug #4175

Misaligned memory access in Interest::getNonce()

Added by Junxiao Shi about 3 years ago. Updated about 3 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

#1

Updated by Junxiao Shi about 3 years ago

  • Status changed from New to In Progress
#2

Updated by Junxiao Shi about 3 years ago

  • Subject changed from Misaligned memory address in Interest::getNonce() to Misaligned memory access in Interest::getNonce()
  • Status changed from In Progress to Code review
  • % Done changed from 0 to 100
#3

Updated by Junxiao Shi about 3 years ago

  • Status changed from Code review to Closed

Also available in: Atom PDF