Opened 8 years ago

Closed 8 years ago

#175 closed defect (fixed)

Muroar uses illegal pointer-aliasing.

Reported by: themaister Owned by:
Priority: medium Milestone:
Component: µRoar Version: 0.1.6
Keywords: Cc:
Architecture: Compiler:
Difficulty: easy Kernel:
Operating System: Parent Tickets:
Patch attached: no Protocol: RoarAudio
Sound driver: Topic: Bug Fix

Description

From muroar.c:289

*(uint32_t*)(&(buf[1])) = htonl(getpid());

Where buf is declared as a:
unsigned char buf[MUROAR_IOBUF];

This causes undefined behavior.

This bug might be found in other roar* packages as well.

Subtickets

#178: libroar uses illegal pointer-aliasing.defectclosed

Change History (2)

comment:1 Changed 8 years ago by ph3-der-loewe

  • Component changed from libroar and friends to µRoar
  • Protocol set to RoarAudio
  • Topic set to Bug Fix

This is also fund in libroar, roar_identify().

comment:2 Changed 8 years ago by ph3-der-loewe

  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from current to 0.1.6
Note: See TracTickets for help on using tickets.