]> git.alsa-project.org Git - alsa-tools.git/commit
Fix bitops to be 64bit clean
authorTakashi Iwai <tiwai@suse.de>
Thu, 18 Aug 2005 13:01:56 +0000 (13:01 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Aug 2005 13:01:56 +0000 (13:01 +0000)
commit125498519dff7b2e578c44f0d0a08b50f5e90798
treedd793340e7561dc14c53e3235b9eef4fc6bd2b7c
parent1d0881e2125ca4fe6cac712c70e24580c19f285f
Fix bitops to be 64bit clean

A patch from bug#1343:

On all 64bit systems (the easiest example is amd64) ld10k1 crashes on
use by lo10k1, some debugging tracked down the problem fairly quickly.

The bitops functions (set_bit and associated) that ld10k1 use come from
the linux kernel, and assume that longs are 32bit only, causing a buffer
overflow of the bit buffer.

The attached patch fixes the bitops to be independent of the size of
longs, and is confirmed to fix the bug on my box.

Zephaniah E. Hull.
ld10k1/src/bitops.h