#1468 closed defect (fixed)

Math overflow in timespecdividebyinteger.c

Reported by: Jennifer Averett Owned by: Joel Sherrill
Priority: normal Milestone: 4.10
Component: score Version: 4.9
Severity: normal Keywords:
Cc: jennifer.averett@… Blocked By:
Blocking:

Description

The attached patch fixes the issue, where 32 bit multiplication is being done and overflowing a register prior to assigning it to a 64 bit value. The equation with:

uint64_t value = uint32_t * uint32_t

produces assembly source doing 32 bit multiplication prior to the assignment.

Attachments (1)

Patch.txt (811 bytes) - added by Jennifer Averett on Nov 6, 2009 at 1:24:35 PM.
Modify source to do 64 bit multiplication

Download all attachments as: .zip

Change History (2)

Changed on Nov 6, 2009 at 1:24:35 PM by Jennifer Averett

Attachment: Patch.txt added

Modify source to do 64 bit multiplication

comment:1 Changed on Nov 11, 2009 at 6:11:47 PM by Joel Sherrill

Resolution: fixed
Status: newclosed

Patch applied to 4.9 branch and head.

Note: See TracTickets for help on using tickets.