[alsa-devel] [PATCH] pyalsa: fix integer overflow in alsaseq.c
Chris Coleman
chris.coleman83 at gmail.com
Tue Aug 18 23:37:58 CEST 2009
Sorry, here's the patch.
Signed-off-by: Chris Coleman <chris.coleman83 at gmail.com>
2009/8/18 Chris Coleman <chris.coleman83 at gmail.com>:
> Hello alsa-devel,
>
> I've been using the alsaseq python module and I found a bug. Sometimes
> the SEQ_* constants have extremely large and incorrect values. For
> example, 25769803811 instead of 35. The lower 32-bits are always
> correct.
>
> Obviously, I'm running a 64-bit operating system.
>
> The problem is that the `value` member of the `ConstantObject`
> structure is an `unsigned int` whereas it should be a `long`. I've
> attached a patch. It's against the latest released version, 1.0.20.
>
> Regards,
> Chris Coleman
>
> Signed-off-by: Chris Coleman <chris.coleman83 at gmail.com>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyalsa-1.0.20-alsaseq.patch
Type: text/x-patch
Size: 612 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20090818/5baf4a3e/attachment.patch
More information about the Alsa-devel
mailing list