core, pulse, modules: Fix undefined behavior with array subscript of invalid type
authorKamil Rytarowski <n54@gmx.com>
Fri, 20 Nov 2015 03:20:36 +0000 (04:20 +0100)
committerArun Raghavan <git@arunraghavan.net>
Tue, 8 Dec 2015 03:26:07 +0000 (08:56 +0530)
commit93cccdee8d80905f3df79822c1682baf5d3c4c95
treef164ffb383d403c95cf464f4a2c1794e53ae2e32
parent9dd77827ad55bf2c6e58f3ce24537afb42616e8e
core, pulse, modules: Fix undefined behavior with array subscript of invalid type

From the NetBSD manual:

     The first argument of these functions is of type int, but only a very
     restricted subset of values are actually valid.  The argument must either
     be the value of the macro EOF (which has a negative value), or must be a
     non-negative value within the range representable as unsigned char.
     Passing invalid values leads to undefined behavior.

     --  ctype(3)
src/modules/dbus/iface-core.c
src/pulse/proplist.c
src/pulsecore/core-util.c
src/pulsecore/ltdl-helper.c
src/pulsecore/modargs.c