src/modules/bluetooth/bluetooth-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b84c293ff37bcf9df9cab0b8267e3f141a21dc42 Author: Mikel Astiz <mikel.as...@bmw-carit.de> Date: Thu Feb 14 12:50:11 2013 +0100 bluetooth: Fix incorrect index check with PA_ELEMENTSOF The equality case should also be considered an index-out-of-range case. diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index 98e795c..8fa1631 100644 --- a/src/modules/bluetooth/bluetooth-util.c +++ b/src/modules/bluetooth/bluetooth-util.c @@ -1806,7 +1806,7 @@ const char*pa_bluetooth_get_form_factor(uint32_t class) { if (((class >> 8) & 31) != 4) return NULL; - if ((i = (class >> 2) & 63) > PA_ELEMENTSOF(table)) + if ((i = (class >> 2) & 63) >= PA_ELEMENTSOF(table)) r = NULL; else r = table[i]; _______________________________________________ pulseaudio-commits mailing list pulseaudio-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/pulseaudio-commits