All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1631625] [NEW] target-mips/dsp_helper.c: two possible bad shifts
@ 2016-10-08 16:19 dcb
  2016-12-07  8:41 ` [Qemu-devel] [Bug 1631625] " Thomas Huth
  2017-01-11  6:38 ` Thomas Huth
  0 siblings, 2 replies; 3+ messages in thread
From: dcb @ 2016-10-08 16:19 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

target-mips/dsp_helper.c:3480:1: error: V629 Consider inspecting the
'0x01 << (size + 1)' expression. Bit shifting of the 32-bit value with a
subsequent expansion to the 64-bit type.

Source code is

        temp = temp & ((0x01 << (size + 1)) - 1);

If size >= 32, then better code might be

        temp = temp & ((0x01UL << (size + 1)) - 1);

target-mips/dsp_helper.c:3509:1: error: V629 Consider inspecting the
'0x01 << (size + 1)' expression. Bit shifting of the 32-bit value with a
subsequent expansion to the 64-bit type.

Duplicate

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1631625

Title:
  target-mips/dsp_helper.c: two possible bad shifts

Status in QEMU:
  New

Bug description:
  target-mips/dsp_helper.c:3480:1: error: V629 Consider inspecting the
  '0x01 << (size + 1)' expression. Bit shifting of the 32-bit value with
  a subsequent expansion to the 64-bit type.

  Source code is

          temp = temp & ((0x01 << (size + 1)) - 1);

  If size >= 32, then better code might be

          temp = temp & ((0x01UL << (size + 1)) - 1);

  target-mips/dsp_helper.c:3509:1: error: V629 Consider inspecting the
  '0x01 << (size + 1)' expression. Bit shifting of the 32-bit value with
  a subsequent expansion to the 64-bit type.

  Duplicate

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1631625/+subscriptions

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] [Bug 1631625] Re: target-mips/dsp_helper.c: two possible bad shifts
  2016-10-08 16:19 [Qemu-devel] [Bug 1631625] [NEW] target-mips/dsp_helper.c: two possible bad shifts dcb
@ 2016-12-07  8:41 ` Thomas Huth
  2017-01-11  6:38 ` Thomas Huth
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2016-12-07  8:41 UTC (permalink / raw)
  To: qemu-devel

Fix has been committed:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=e6e2784cacd4cfec149

** Changed in: qemu
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1631625

Title:
  target-mips/dsp_helper.c: two possible bad shifts

Status in QEMU:
  Fix Committed

Bug description:
  target-mips/dsp_helper.c:3480:1: error: V629 Consider inspecting the
  '0x01 << (size + 1)' expression. Bit shifting of the 32-bit value with
  a subsequent expansion to the 64-bit type.

  Source code is

          temp = temp & ((0x01 << (size + 1)) - 1);

  If size >= 32, then better code might be

          temp = temp & ((0x01UL << (size + 1)) - 1);

  target-mips/dsp_helper.c:3509:1: error: V629 Consider inspecting the
  '0x01 << (size + 1)' expression. Bit shifting of the 32-bit value with
  a subsequent expansion to the 64-bit type.

  Duplicate

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1631625/+subscriptions

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] [Bug 1631625] Re: target-mips/dsp_helper.c: two possible bad shifts
  2016-10-08 16:19 [Qemu-devel] [Bug 1631625] [NEW] target-mips/dsp_helper.c: two possible bad shifts dcb
  2016-12-07  8:41 ` [Qemu-devel] [Bug 1631625] " Thomas Huth
@ 2017-01-11  6:38 ` Thomas Huth
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2017-01-11  6:38 UTC (permalink / raw)
  To: qemu-devel

Released with version 2.8

** Changed in: qemu
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1631625

Title:
  target-mips/dsp_helper.c: two possible bad shifts

Status in QEMU:
  Fix Released

Bug description:
  target-mips/dsp_helper.c:3480:1: error: V629 Consider inspecting the
  '0x01 << (size + 1)' expression. Bit shifting of the 32-bit value with
  a subsequent expansion to the 64-bit type.

  Source code is

          temp = temp & ((0x01 << (size + 1)) - 1);

  If size >= 32, then better code might be

          temp = temp & ((0x01UL << (size + 1)) - 1);

  target-mips/dsp_helper.c:3509:1: error: V629 Consider inspecting the
  '0x01 << (size + 1)' expression. Bit shifting of the 32-bit value with
  a subsequent expansion to the 64-bit type.

  Duplicate

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1631625/+subscriptions

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-11  6:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-08 16:19 [Qemu-devel] [Bug 1631625] [NEW] target-mips/dsp_helper.c: two possible bad shifts dcb
2016-12-07  8:41 ` [Qemu-devel] [Bug 1631625] " Thomas Huth
2017-01-11  6:38 ` Thomas Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.